1. 31 Mar, 2005 1 commit
    • Michael Natterer's avatar
      Allow to pop up menus without grabbing the keyboard. Useful for stuff like · 91cb92c0
      Michael Natterer authored
      2005-03-31  Michael Natterer  <mitch@gimp.org>
      
      	Allow to pop up menus without grabbing the keyboard. Useful for
      	stuff like virtual keyboards. Fixes bug #159890
      
      	* gtk/gtk.symbols
      	* gtk/gtkmenushell.[ch]: added boolean property "take-focus"
      	and public API gtk_menu_shell_set/get_take_focus().
      
      	* gtk/gtkmenu.c (gtk_menu_popup)
      	(popup_grab_on_window): don't grab the keyboard if take_focus
      	is FALSE.
      
      	* gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
      	parent menu_shell's take_focus property to the submenu which is
      	about to be popped up.
      91cb92c0
  2. 26 Mar, 2005 1 commit
  3. 22 Mar, 2005 1 commit
  4. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  5. 09 Mar, 2005 1 commit
  6. 11 Feb, 2005 1 commit
    • Matthias Clasen's avatar
      Support vertical menubars (#166632): · 812e0cfd
      Matthias Clasen authored
      
      2005-02-11  Matthias Clasen  <mclasen@redhat.com>
      
      	Support vertical menubars  (#166632):
      
      	* gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
      	directions, with values for left-to-right, right-to-left,
      	top-to-bottom and bottom-to-top.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkmenubar.h:
      	* gtk/gtkmenubar.c: Add two properties, pack-direction and
      	child-pack-direction, which specify how children and
      	grandchildren of a menubar are packed, with getters and setters.
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_set_property):
      	(gtk_menu_bar_get_property): Implement set_property and get_property.
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_size_request):
      	(gtk_menu_bar_size_allocate): Take pack direction into account.
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
      	move_current here move all the menubar-specific direction
      	tweaking from the generic menushell implementation here.
      
      	* gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific
      	direction tweaking from the generic menushell implementation here.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_size_request):
      	(gtk_menu_bar_size_allocate): Take pack direction into account.
      
      	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
      	(gtk_image_menu_item_size_allocate):
      	(gtk_image_menu_item_toggle_size_request): Take child pack
      	direction into account and pack the image vertically if
      	necessary.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
      	Set the submenu direction to left-right for menuitems in
      	vertical menubars.
      	(gtk_real_menu_shell_move_current): Simplify by moving
      	direction tweaking to menu- and menubar-specific
      	implementations. Take pack direction into account when
      	doing fallbacks.
      
      	* tests/testmenubars.c: Test menubars in various packing
      	direction combinations.
      
      	* tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
      812e0cfd
  7. 28 Dec, 2004 1 commit
  8. 15 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Use _gtk_menu_item_popup_submenu() to make keynav into submenus work · 8b927c6f
      Matthias Clasen authored
      2004-12-15  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first)
      	(gtk_real_menu_shell_activate_current): Use
      	_gtk_menu_item_popup_submenu() to make keynav into submenus work
      	instantaneously, independent of the popup delay.  (#161140)
      
      	* gtk/gtkmenuitem.[hc]: _-prefix gtk_menu_item_popup_submenu() and
      	make it non-static.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_paint): Remove unused variables.
      8b927c6f
  9. 13 Dec, 2004 2 commits
  10. 30 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Don't do the popup-on-click handling for menubars. (#159931, Søren · 4e67511f
      Matthias Clasen authored
      2004-11-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
      	do the popup-on-click handling for menubars.  (#159931,
      	Søren Sandmann)
      
      	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Don't
      	handle popup delay if the submenu is already mapped.
      4e67511f
  11. 24 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Open submenus on click. (#128968, Martin Jeppesen) · 6be4d665
      Matthias Clasen authored
      2004-11-24  Matthias Clasen  <mclasen@redhat.com>
      
      	Open submenus on click.  (#128968, Martin Jeppesen)
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
      	activate items with submenus after the timeout, just select
      	them.
      
      	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
      	submenus popup immediately on click, regardless of popup
      	delay.
      6be4d665
  12. 22 Nov, 2004 1 commit
  13. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  14. 27 May, 2004 1 commit
  15. 07 May, 2004 1 commit
    • Matthias Clasen's avatar
      Merge from 2.4: · 0a41106a
      Matthias Clasen authored
      Thu May  6 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Merge from 2.4:
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Also
      	popup the submenu for items in torn off menus.  (#122051)
      0a41106a
  16. 06 Mar, 2004 1 commit
  17. 27 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Make menus work better on Xinerama (#126150): · 519a586a
      Matthias Clasen authored
      Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Make menus work better on Xinerama (#126150):
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the
      	monitor_num on the screen of the menu, not of the attach widget.
      
      	* gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num.
      	(gtk_menu_window_size_request): Remember the monitor_num.
      519a586a
  18. 08 Dec, 2003 1 commit
    • Owen Taylor's avatar
      === Released 2.3.1 === · 85c05a86
      Owen Taylor authored
      Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * === Released 2.3.1 ===
      
              * NEWS: Updates for 2.3.1
      
              * configure.in: Version 2.3.1, interface age 0, binary age 301.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
              Rename from gtk_menu_item_real_can_activate_accel() to
              match GTK+ convention, improve comment.
      
              * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
              can ::can-activate-accel signal.
      
              * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
              in comment.
      
              * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean
              up comment.
      
              * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
              into the .c file.
      
      Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkicontheme.c (find_builtin_icon): Fix a
              missing 'else'. (#128816, Jorn Baayen)
      85c05a86
  19. 27 Nov, 2003 1 commit
    • Tim Janik's avatar
      allow accel activation depending on sensitivity and the attach widget. · 448b576d
      Tim Janik authored
      Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.c: allow accel activation depending on sensitivity
              and the attach widget.
      
              * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
              sensitivity and the parent menu.
      
              * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
              checks whether accelerators may activate a widget. the default handler
              demands the widget be sensitive and visible+viewable.
      
              * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
      448b576d
  20. 19 Nov, 2003 1 commit
    • Soeren Sandmann's avatar
      set to 200 instead of 225 Impose a minimum width on items that have a · 907483c6
      Soeren Sandmann authored
      Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
      	* gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
      	on items that have a submenu. (#120104).
      
      Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
      	"ItemState" field indicating the overflowed-ness etc. of the item.
      	(gtk_toolbar_size_allocate): update the field here.
      907483c6
  21. 12 Nov, 2003 2 commits
    • Matthias Clasen's avatar
      Use the event window of the menuitem to determine the monitor. This fixes · bdb8bd13
      Matthias Clasen authored
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
      	window of the menuitem to determine the monitor. This fixes some
      bdb8bd13
    • Matthias Clasen's avatar
      Changes to improve menu positioning on Xinerama (#108328): · e71bcc84
      Matthias Clasen authored
      Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Changes to improve menu positioning on Xinerama (#108328):
      
      	* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
      	to store the monitor on which the menu is to be positioned.
      
      	* gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
      	in the GtkMenuPrivate struct and fetch the monitor geometry after
      	calling the position_func, in case it has been changed.
      
      	* gtk/gtkmenu.c (gtk_menu_set_monitor): New function
      	to be used in GtkMenuPositionFunc implementations for setting
      	the monitor_num field in GtkMenuPrivate.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call
      	gtk_menu_set_monitor.
      e71bcc84
  22. 13 Jul, 2003 2 commits
  23. 12 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      new properties "horizontal-offset" and "vertical-offset" that determines · d77b4c14
      Soeren Sandmann authored
      Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenu.c (gtk_menu_class_init): new properties
      	"horizontal-offset" and "vertical-offset" that determines the
      	position of the menu when it is a submenu.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
      	submenus according to new vertical- and horizontal-offset
      	properties.
      d77b4c14
  24. 08 Jul, 2003 1 commit
    • 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
  25. 06 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      add vertical_padding style property. · c8515b2f
      Soeren Sandmann authored
      Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
              * gtk/gtkmenu.c: add vertical_padding style property.
      
              * gtk/gtkmenuitem.c: add style properties toggle_spacing,
              arrow_spacing and horizontal_padding. Also center separators and
              make them a bit taller.
      
              * gtk/*menuitem.c: use new style properties.
      
              * docs/widget_geometry.txt: Add note about GtkMenuItem
      
              * gtk/gtkstyle.c
              (gtk_default_draw_vline, gtk_default_draw_hline):
              fix +/-1 errors.
      
              (gtk_default_draw_shadow): draw a black border around menus.
      
              * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
              calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
              x2 and y1, y2 respectively, not x, width and y, height).
      c8515b2f
  26. 28 Feb, 2003 1 commit
    • Manish Singh's avatar
      demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c · dd74be94
      Manish Singh authored
      Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
      
              * demos/gtk-demo/main.c
              * demos/gtk-demo/tree_store.c
              * gdk/x11/gdkscreen-x11.c
              * gtk/gtkcellrenderertoggle.c
              * gtk/gtkcolorsel.c
              * gtk/gtkdnd.c
              * gtk/gtkeditable.c
              * gtk/gtkentry.c
              * gtk/gtkmenu.c
              * gtk/gtkmenubar.c
              * gtk/gtkmenuitem.c
              * gtk/gtkmenushell.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktextbuffer.c
              * gtk/gtktextview.c
              * gtk/gtktreeviewcolumn.c
              * tests/testgtk.c
              * tests/testtext.c
              * tests/testtreeedit.c
              * tests/testtreefocus.c
              * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
      dd74be94
  27. 05 Feb, 2003 1 commit
  28. 29 Jan, 2003 1 commit
    • Owen Taylor's avatar
      Make up from the menu bar go to the end of the submenu. (#96114, Ian · f9a39996
      Owen Taylor authored
      Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
              Make up from the menu bar go to the end of the submenu.
              (#96114, Ian Peters.)
      
              * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate):
              Only do the select-but-not-activate stuff if the
              menu is already active. Otherwise, just activate.
              (#101690, Arvind Samptur)
      f9a39996
  29. 15 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Pass TRUE for search_sensitive - prevents a problem where after hitting · 66a228fb
      Owen Taylor authored
      Sun Dec 15 18:14:16 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item):
              Pass TRUE for search_sensitive - prevents a problem
              where after hitting Alt-F to bring up the File menu,
              the mnemonics for the items in the menu might not
              be usable. (#89336)
      66a228fb
  30. 14 Dec, 2002 1 commit
  31. 10 Dec, 2002 1 commit
    • Soeren Sandmann's avatar
      new default color scheme based on the GNOME stock icon palette. (#80691, · 439d61b9
      Soeren Sandmann authored
      Tue Dec 10 12:40:30 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenuitem.c, gtk/gtkstyle.c, gtk/gtkrc.c: new default
      	color scheme based on the GNOME stock icon palette. (#80691,
      	Tuomas Kuosmanen, Garrett LeSage, Owen Taylor)
      
      	* gtk/gtknotebook.c (gtk_notebook_real_remove): take a new
      	parameter, "destroying", and don't emit the switch-page signals
      	when it is true (fix #64832, reported by Jarred Keuch)
      
      	* gtk/gtklabel.c (gtk_label_set_property): remove unused
      	variable.
      439d61b9
  32. 02 Nov, 2002 1 commit
  33. 20 Oct, 2002 1 commit
    • Soeren Sandmann's avatar
      gtkmenu.c, gtkmenubar.c, gtkmenuitem.c, gtkmenushell.c, gtkmenushell.h, · 4b08e835
      Soeren Sandmann authored
      Sun Oct 20 23:58:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtkmenu.c, gtkmenubar.c, gtkmenuitem.c, gtkmenushell.c,
      	gtkmenushell.h, gtkmenushell.h
      
      	- make the delay before submenus appear below menu bars a
      	  GtkSetting
      	- make the delay before submenus pops up a GtkSetting
      	- make the stay up triangle slightly larger
      	- don't pop up the first submenu immediately.
      	- make the default delay for submenus 225 ms, and 0 for menubars.
      	- make the default delay before popping down inside the stay-up
      	  triangle 1000 ms
      
      	Fixes #74950
      4b08e835
  34. 11 Oct, 2002 1 commit
  35. 05 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 8409ada9
      Manish Singh authored
      Fri Oct  4 18:40:50 2002  Manish Singh  <yosh@gimp.org>
      
              * gtkcheckmenuitem.[ch] gtkimagemenuitem.[ch] gtkmenu.[ch]
              gtkmenubar.[ch] gtkmenuitem.[ch] gtkmenushell.[ch]
              gtkradiomenuitem.[ch]: Deprecation cleanup
      8409ada9
  36. 04 Oct, 2002 1 commit
    • Soeren Sandmann's avatar
      remove unused codepath. · d2aa6268
      Soeren Sandmann authored
      Fri Oct  4 21:21:47 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_paint): remove unused
      	codepath.
      
      	* gtk/gtkmenuitem.c (gtk_real_menu_item_{de,}select): call
      	gtk_widget_queue_draw() instead of gtk_widget_draw().
      d2aa6268
  37. 23 Sep, 2002 1 commit