1. 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
  2. 25 Nov, 2004 1 commit
  3. 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
  4. 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
  5. 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
  6. 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
  7. 06 Mar, 2004 1 commit
  8. 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
  9. 01 Mar, 2004 1 commit
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 28 Nov, 2002 1 commit
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 01 Mar, 2002 1 commit
    • Owen Taylor's avatar
      include gdkkeysysms.h if compiling gdk_keyval_convert_case. · fce84d05
      Owen Taylor authored
      Thu Feb 28 19:55:01 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkkeys.c: include gdkkeysysms.h if
              compiling gdk_keyval_convert_case.
      
              * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement
              <Control>Tab <Control><Shift>Tab to cycle between
              all menu bars in a toplevel once one is up.
      
              * tests/testgtk.c: Add a second menubar, this
              example is already full of crack anyways.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd
              unhandled events up to the parent menu shell.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only
              pop up the menu if the parent menu shell is still active.
      
              * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a
              old_focus argument, export privately.
      fce84d05
  29. 21 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Add GDK_ISO_Next_Group/Prev_Group/Level3_Shift/ First_Group/Last_Group to · e5e5a521
      Owen Taylor authored
      Thu Feb 21 16:51:17 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Add
              GDK_ISO_Next_Group/Prev_Group/Level3_Shift/
              First_Group/Last_Group to list of invalid accelerators.
              (A lot more that should be added, but probably would
              want a range mechanism. These are the ones found in
              the standard XFree86 config files.)
      
              * gtk/gtkbindings.c (gtk_bindings_activate): Fix problem
              that broke bindings for menus.
      
              * gtk/gtkwindow.[ch]: Export _gtk_window_activate_key()
              privately.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Use
              _gtk_window_activate_key(), gtk_bindings_activate_event().
      e5e5a521
  30. 03 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Non-exported _gtk_menu_select_first() function that selects the first item · ae7521bd
      Owen Taylor authored
      Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c (_gtk_menu_shell_select_first):
              Non-exported _gtk_menu_select_first() function that
              selects the first item of the menu in a standard
              way. (Skipping tearoffs.)
      
              * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
              gtkmenuitem.c: Use _gtk_menu_shell_select_first().
      
              * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
              if we are starting the timeout from a keypress so
              we can set menushell->ignore_enter properly.
      
              * gtk/gtknotebook.c (focus_child_in): Return something
              meaningful if there are no children.
      
              * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
              problem.
      ae7521bd
  31. 30 Jan, 2002 2 commits
    • Owen Taylor's avatar
      Document that the end points are included in the range. (#69783, Jeffrey · 9602e6c3
      Owen Taylor authored
      Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
              that the end points are included in the range. (#69783,
              Jeffrey Baker)
      9602e6c3
    • Owen Taylor's avatar
      ue Jan 29 19:51:05 2002 Owen Taylor <otaylor@redhat.com> · ea4135b0
      Owen Taylor authored
              * gtk/gtkenums.h: Deprecate GtkPreviewType,
              GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
              (#68183, Matthias Clasen)
      
              * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
              the public header to avoid having to use GtkSubmenuPlacement.
      
              * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
              GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
      
              * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
      ea4135b0
  32. 16 Jan, 2002 1 commit
  33. 29 Nov, 2001 1 commit
    • Kristian Rietveld's avatar
      add checks for empty menu items to behave like insensitive items (#59456) · 209d0867
      Kristian Rietveld authored
      Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
              empty menu items to behave like insensitive items (#59456)
      
              * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
              next item if the first item in the menu is a tear off item
              (#59456-2, suggestion by Matthias Clasen)
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
              (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
              (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
              (gtk_real_menu_shell_activate_current): add check, so empty
              menu items behave like insensitive items (#59456)
      
              * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
              the checks more readable ...
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
              (gtk_menu_shell_button_release): causes the menu to dropdown if the
              caption is clicked again (#64977)
      209d0867
  34. 24 Nov, 2001 1 commit
  35. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  36. 19 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Add missing cast. · 1513d3aa
      Owen Taylor authored
      Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
      
      	* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
      	non-public _gtk_menu_item_set_placement.
      
      	* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
      1513d3aa
  37. 25 Jul, 2001 1 commit
    • James Henstridge's avatar
      commiting patch after comments from Alex on IRC · e7093923
      James Henstridge authored
      2001-07-15  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
      	(gtk_window_remove_accel_group): same here.
      	(gtk_window_key_press_event): same here.
      
      	* gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
      	(gtk_widget_remove_accelerator): same here.
      	(gtk_widget_remove_accelerators): same here.
      
      	* gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
      	instead of GtkObject.
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
      	now takes GObjects.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
      	pass a GObject to gtk_accel_group_entries_from_object.
      	(gtk_item_factory_create_item): s/accel_widget/accel_object/
      
      	* gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
      
      	* gtk/gtkaccellabel.c: convert to handle GObject accel objects.
      
      	* gtk/gtkaccellabel.h: fix header to reflect that arbitrary
      	GObjects can have accelerators set now.  Add compatibility
      	defines.
      
      	* gtk/gtkmarshal.list: add missing marshallers.
      
      	* gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
      	accelerators on plain GObjects.  gtk_accel_group_object_destroy
      	has been converted into a weak reference, and
      	gtk_accel_group_delete_entries is now a destroy notify for that
      	piece of data.
      e7093923
  38. 19 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Enforce the widget/child realization/mapping invariants. · aa49527f
      Owen Taylor authored
      Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
      	the widget/child realization/mapping invariants.
      
      	* gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
      	gtk_widget_[get/set]_child_visible() to control
      	whether visible children of a mapped window are
      	mapped.
      
      	* docs/widget_system.txt: Updated for changes in
      	container contract, and addition of GTK_CHILD_VISIBLE.
      
      	* gtk/gtkcontainer.c: Add generic map()/unmap()
      	functions that work for almost all containers.
      
      	* gtk/gtknotebook.c gtk/gtkpacker.c: Use
      	gtk_widget_set_child_visible() where necessary.
      
      	* gtk/*.c: Remove excess map(), unmap(), and
      	realization/mapping invariant enforcing code
      	from many containers.
      aa49527f
  39. 18 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac