1. 26 Jun, 2005 1 commit
    • Manish Singh's avatar
      add GDK_GRAB_BROKEN to the switch cases. · 2f330b77
      Manish Singh authored
      Sun Jun 26 00:04:36 2005  Manish Singh  <yosh@gimp.org>
      
              * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
              GDK_GRAB_BROKEN to the switch cases.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
              variables.
      
              * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
      2f330b77
  2. 25 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Add a GrabBroken event to GDK, and a grab-broken-event signal to · 9b356ea0
      Matthias Clasen authored
      2005-06-25  Matthias Clasen  <mclasen@redhat.com>
      
      	Add a GrabBroken event to GDK, and a grab-broken-event
      	signal to GtkWidget.  (#107320, Simon Cooke, initial patch
      	by John Ehresman)
      
      	* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
      	define a GdkEventGrabBroken event struct.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
      	Generate GrabBroken events in response to WM_KILLFOCUS.
      
      	* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
      	when a grab is broken by the window becoming unviewable,
      	or by another grab from the same client.
      
      	* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
      
      	* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
      	GrabBroken events into grab_broken_event signals.
      
      	* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
      	events.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
      	the menu when the grab is broken.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
      	the color picker if the grab is broken.
      
      	* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
      	the grab is broken.
      9b356ea0
  3. 10 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      · 80bf176f
      Matthias Clasen authored
      2005-06-10  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
      	* gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
      	* gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
      	* gtk/gtkstock.c (gtk_stock_set_translate_func):
      	* gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
      	* gtk/gtkscrolledwindow.h:
      	* gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
      80bf176f
  4. 02 May, 2005 1 commit
    • Matthias Clasen's avatar
      Fix up the docs a bit. · 30fc5201
      Matthias Clasen authored
      2005-05-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
      	(gtk_menu_shell_get_take_focus): Fix up the docs a bit.
      30fc5201
  5. 05 Apr, 2005 1 commit
  6. 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
  7. 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
  8. 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
  9. 09 Feb, 2005 1 commit
  10. 28 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Return a boolean indicating whether an item in the submenu was selected. · e77e1e24
      Matthias Clasen authored
      2004-12-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
      	Return a boolean indicating whether an item in the submenu
      	was selected.
      	(gtk_real_menu_shell_move_current): When going in child
      	direction, don't get stuck at completely insensitive
      	submenus.  (#162055, Billy Biggs)
      e77e1e24
  11. 16 Dec, 2004 1 commit
  12. 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
  13. 10 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Support no-Alt mnemnonics in menu bars (#101309, Owen Taylor) · f3a74ace
      Matthias Clasen authored
      2004-12-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Support no-Alt mnemnonics in menu bars  (#101309, Owen Taylor)
      
      	* gtk/gtkwindow.c: Factor out mnemonic hash code into
      	a separate file.
      
      	* gtk/gtkmnemonichash.[hc]: Factored out mnemonic hash
      	code from gtkwindow.c.
      
      	* gtk/Makefile.am (gtk_c_sources): Add gtkmnemonichash.[hc].
      
      	* gtk/gtkmenushell.c (struct _GtkMenuShellPrivate): Give
      	menu shells their own mnemonic hash.
      
      	* gtk/gtkmenushell.h: Add private api to support mnemonics.
      
      	* gtk/gtklabel.c (gtk_label_setup_mnemonic): Add mnemonic to
      	the menushell mnemonic hash when inside a menu.
      f3a74ace
  14. 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
  15. 25 Nov, 2004 1 commit
  16. 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
  17. 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
  18. 01 Jun, 2004 1 commit
    • Soeren Sandmann's avatar
      Make menus only stay up if you release within 500 milliseconds. · 01a5698e
      Soeren Sandmann authored
      Wed Jun  2 00:39:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Make menus
      	only stay up if you release within 500 milliseconds.
      	(gtk_menu_shell_button_press): Set the activate_time to the event
      	time when a button is pressed.
      
      	* gtk/gtkmenu.c (gtk_menu_motion_notify, gtk_menu_enter_notify):
      	Interprete button releases as activate when we have seen both an
      	enter an a motion event.
      01a5698e
  19. 15 Mar, 2004 1 commit
    • Owen Taylor's avatar
      #136672, reported by Christian Persch; fixes based on a patch by Soeren · 3895bea4
      Owen Taylor authored
      Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
      
              #136672, reported by Christian Persch; fixes based
              on a patch by Soeren Sandmann.
      
              * gtk/gtkmenu.c: Change the handling of mixed gridded
              and non-gridded menu items; the old method was causing
              major performance problems even with the "avoid relayout
              on destruction" hack put in recently.
      
              Now we first lay out the gridded items and then put the
              non-gridded items into empty rows / after the gridded items.
              Layout is done in a central menu_shell_ensure_layout(). Also
              avoid emitting property notifications when we initially
              insert or attach items.
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
              unused menu_shell->menu_flag, and document it as unused
              in the header.
      
              * tests/testactions.c: Add a test of creating/removing
              lots of items.
      
              * test/testgtk.c: Add some more cruft to the menu test.
      3895bea4
  20. 06 Mar, 2004 1 commit
  21. 02 Mar, 2004 1 commit
    • Tim Janik's avatar
      expose gtk_bindings_activate_event(), changed callers. · c454880a
      Tim Janik authored
      Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
              callers.
      
              * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
              the key event propagation mechanism used for focus widgets.
              (gtk_window_key_release_event): use the same key event propagation logic
              as gtk_window_key_press_event().
      c454880a
  22. 01 Mar, 2004 1 commit
  23. 03 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Right-justify labels in rtl mode. (#129071, chinen@jp.ibm.com) · 362158dc
      Matthias Clasen authored
      Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
      	in rtl mode.  (#129071, chinen@jp.ibm.com)
      
      Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
      	meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
      	mode.  (#107528)
      362158dc
  24. 21 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      New function to emit the "cancel" signal on a menu shell. · b21fe174
      Matthias Clasen authored
      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)
      b21fe174
  25. 13 Aug, 2003 1 commit
    • Owen Taylor's avatar
      Remove usage of menu_shell->ignore leave which was to deal with stray · a6491199
      Owen Taylor authored
      Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
              Remove usage of menu_shell->ignore leave which was
              to deal with stray events we no longer get because
              we do grabbing differently. Comment it as unused in
              the header. (#115837, Keith Bissett)
      a6491199
  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. 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
  28. 14 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Add a new binding signal, "move_scroll", and use it to hook up · 08a08cf1
      Owen Taylor authored
      Sat Dec 14 14:19:16 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenu.c: Add a new binding signal, "move_scroll",
              and use it to hook up Home/End/Page_Up/Page_Down keybindings.
              (#80484, Narayana Pattipati, Marius Andreiana)
      
              * gtk/gtkmenu.c (gtk_menu_scroll_item_visible): Fix some
              bugs in the computation of when an item is visible. (#99545)
      
              * gtk/gtkbindings.[ch] (_gtk_binding_signal_new) gtk/gtkmenushell.c:
              Move here, export privately.
      
              * gtk/gtkmenushell.c (_gtk_menu_shell_select_last): Export
              privately.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_select_item): Don't
              select the item if it is already selected.
      08a08cf1
  29. 28 Nov, 2002 1 commit
  30. 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
  31. 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
  32. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Make gtk_menu_shell_select_first() public. (#70374) · 4d7d94f6
      Owen Taylor authored
      Mon Sep 23 17:50:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkentry.c gtk/gtkmenubar.c
              gtk/gtkmenuitem.c gtk/gtktextview.c: Make
              gtk_menu_shell_select_first() public. (#70374)
      4d7d94f6
  33. 21 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383) · 083c3aef
      Matthias Clasen authored
      	* gdk/gdkdraw.c (gdk_drawable_get_type):
      	* gdk/gdkgc.c (gdk_gc_get_type):
      	* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
      	* gtk/gtkimcontext.c (gtk_im_context_get_type):
      	* gtk/gtkprogress.c (gtk_progress_get_type):
      	* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
      	* gtk/gtkwidget.c (gtk_widget_get_type):
      	* gtk/gtkseparator.c (gtk_separator_get_type):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
      	* gtk/gtkscale.c (gtk_scale_get_type):
      	* gtk/gtkrange.c (gtk_range_get_type):
      	* gtk/gtkpaned.c (gtk_paned_get_type):
      	* gtk/gtkmisc.c (gtk_misc_get_type):
      	* gtk/gtkitem.c (gtk_item_get_type):
      	* gtk/gtkcontainer.c (gtk_container_get_type):
      	* gtk/gtkbbox.c (gtk_button_box_get_type):
      	* gtk/gtkbox.c (gtk_box_get_type):
      	* gtk/gtkbin.c (gtk_bin_get_type):
      	* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
      	G_TYPE_FLAG_ABSTRACT.  (#72383)
      083c3aef
  34. 25 Jul, 2002 1 commit
    • Owen Taylor's avatar
      When a menubar is up, use F10 to cycle menubars, not Control-Tab (#87159, · 4e84b666
      Owen Taylor authored
      Thu Jul 25 14:14:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle
              menubars, not Control-Tab (#87159, Calum Benson. Patch from
              Padraig O'Briain.)
      
              * gtk/gtkmenubar.c: When cycling menu bars, cancel
              after the last instead of wrapping around.
      4e84b666
  35. 06 Jul, 2002 1 commit
    • Owen Taylor's avatar
      Add an extra parameter to _gtk_menu_item_select_first() to allow us to · 367cacdf
      Owen Taylor authored
      Fri Jul  5 20:18:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenubar.c gtk/gtkmenuitem.c
              gtk/gtkentry.c gtk/gtktextview.c: Add an extra parameter
              to _gtk_menu_item_select_first() to allow us to choose
              whether we want to select the first item predictably
              or to select the first sensitive item. Fixes problem
              with insensitive menu items and keynav. (#85796,
              reported by Bill Haneman and others.)
      367cacdf
  36. 12 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Check to see if the menu item is selectable before setting · 789d2711
      Owen Taylor authored
      Wed Jun 12 17:31:15 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
              Check to see if the menu item is selectable before
              setting menu_shell->active_menu_item. This hopefully
              will keep gail from getting confused.
              (#84115, Remus Draica)
      789d2711
  37. 29 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Integrate Erwann Chenede's multihead changes for the gtk/ directory. · 4632fb81
      Alexander Larsson authored
      Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Integrate Erwann Chenede's multihead changes for the gtk/ directory.
      
      	* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtkcolorsel.[ch]: Add
      	gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
      	make up for non-multihead safety of
      	gtk_color_selection_set_change_palette_hook()
      
      	* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
      	gtk_{invisible,menu,window}_set_screen(); add "screen" properties
      	for GtkWindow and GtkMenu.
      
      	* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
      	gtk_plug_new_for_display(). Multihead fixes.
      
      	* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
      	rid of now-useless gtk_settings_constructor().
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
      	check/radio button indicators bitmap handling to be multihead
      	safe.
      
      	* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
      	gtk_widget_get_display(), gtk_widget_get_clipboard(),
      	gtk_widget_get_root_window().
      
      	* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
      	gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
      	gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
      	gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
      	gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
      	gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
      	gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
      	gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
      	misc mechanical multihead-safety fixes.
      
      	* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
      	the dropper, look up the color palette only at realization time,
      	other multihead fixes.
      
      	* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
      	unrealizing.
      
      	* gtk/gtkentry.c: Only claim ownership of the primary selection
      	when realized, misc multihead fixes.
      
      	* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
      	fix gtk_font_selection_get_font() for multihead.
      
      	* gtk/gtkgc.c: make the depth => drawable hash per-screen.
      
      	* gtk/gtkinvisible.c: Add a constructor that realizes the
      	widget, so we get a realized widget with g_object_new() as
      	well gtk_invisible_new() as before.
      
      	* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
      	variables.
      
      	* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
      	are used on the wrong screen.
      
      	* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
      	read properties and connect to settings when the screen is changed,
      	rather than on init/finalize.
      
      	* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
      	default icon pixmaps/mask are only shared between windows on the
      	same screen. Misc multihead fixes.
      
      Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
      	Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
      
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
      	Fix silly bug, noticed by Sven Neumann.
      
      Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
      	so that you can set a new sort func.
      4632fb81
  38. 11 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Export private _gtk_menu_shell_activate() to encapsulate cut-and-paste · 03498ba2
      Owen Taylor authored
      Sat Apr  6 06:57:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenuitem.c: Export
              private _gtk_menu_shell_activate() to encapsulate
              cut-and-paste code.
      
              * gtk/gtkmenubar.c: Select the first item on the menu bar
              for F10 rather than acting as if the user pressed <Alt>F
              to select the file manager.
      03498ba2
  39. 20 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Improve test to prevent infinite loop. (#74952, Thomas Leonard) · 288909d4
      Owen Taylor authored
      Wed Mar 20 11:32:07 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.c: Improve test to prevent infinite
              loop. (#74952, Thomas Leonard)
      
              * gtk/gtkmenushell.c (gtk_real_menu_shell_cycle_focus):
              Fix warning when toplevel menu shell isn't a menu
              bar. (Thomas Leonard, #75602)
      288909d4
  40. 03 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Back out changes to propagate keys to parent menu shells, since that broke · 8627dbda
      Owen Taylor authored
      Sun Mar  3 17:03:30 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c gtk/gtkmenubar.[ch]: Back out
              changes to propagate keys to parent menu shells, since
              that broke stuff; rather implement ::cycle-focus as
              a key binding on GtkMenuShell rather than on GtkMenuBar.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_class_init): Add
              add bindings for ::cycle-focus. (In gtkmenubar.c, were
              mistakently bound to ::move-focus.)
      8627dbda