1. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  2. 20 Jun, 2008 4 commits
    • Hans Breuer's avatar
      must return a value of the appropriate type with g_return_val_if_fail · 8e2ef498
      Hans Breuer authored
      2008-06-20  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
      	a value of the appropriate type with g_return_val_if_fail
      	
      	* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well
      
      	* gtk/gtkfilesystem.c : don't add the "File System" on win32
      
      	* tests/makefile.msc : remove broken autotestfile(system|chooser) 
      	from build
      
      
      svn path=/trunk/; revision=20657
      8e2ef498
    • Johan Dahlin's avatar
      Add missing Since: gtk-doc markup for newly added GSEAL API. Change all · e46eeab2
      Johan Dahlin authored
      2008-06-20  Johan Dahlin  <jdahlin@async.com.br>
      
          * gtk/gtkaccelgroup.c:
          * gtk/gtkcolorseldialog.c:
          * gtk/gtkcontainer.c:
          * gtk/gtkdialog.c:
          * gtk/gtkentry.c (gtk_entry_class_init):
          * gtk/gtkfontsel.c:
          * gtk/gtkhandlebox.c:
          * gtk/gtklayout.c:
          * gtk/gtkmenu.c (gtk_menu_class_init):
          * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
          * gtk/gtkplug.c (gtk_plug_class_init):
          * gtk/gtkselection.c:
          * gtk/gtksocket.c:
          * gtk/gtktreeselection.c:
          * gtk/gtkwidget.c (gtk_widget_class_init):
          * gtk/gtkwindow.c:
          Add missing Since: gtk-doc markup for newly added GSEAL API.
          Change all Since: GSEAL-branch to Since: 2.14.
      
      
      svn path=/trunk/; revision=20639
      e46eeab2
    • Tim Janik's avatar
      Fix documentaion of gtk_menu_item_get_accel_path · dcbc5d02
      Tim Janik authored
      svn path=/trunk/; revision=20623
      dcbc5d02
    • Tim Janik's avatar
      Seal GtkMenuItem · a66946e2
      Tim Janik authored
      svn path=/trunk/; revision=20610
      a66946e2
  3. 19 Jun, 2008 1 commit
  4. 07 Jun, 2008 1 commit
  5. 25 May, 2008 1 commit
  6. 06 Feb, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkcontainer.c gtk/gtkexpander.c gtk/gtkframe.c gtk/gtklabel.c · e7355f82
      Michael Natterer authored
      2008-02-06  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkcontainer.c
      	* gtk/gtkexpander.c
      	* gtk/gtkframe.c
      	* gtk/gtklabel.c
      	* gtk/gtkmain.c
      	* gtk/gtkmenu.c
      	* gtk/gtkmenuitem.c
      	* gtk/gtkmenushell.c
      	* gtk/gtknotebook.c
      	* gtk/gtkseparatortoolitem.c
      	* gtk/gtksocket.c
      	* gtk/gtktextlayout.c
      	* gtk/gtktoggletoolbutton.c
      	* gtk/gtktoolbutton.c
      	* gtk/gtktoolitem.c
      	* gtk/gtktree.c
      	* gtk/gtktreeitem.c: replace "foo && GTK_IS_FOO (foo)" by simply
      	"GTK_IS_FOO (foo)".
      
      
      svn path=/trunk/; revision=19481
      e7355f82
  7. 30 Nov, 2007 1 commit
  8. 21 Nov, 2007 1 commit
  9. 13 Jun, 2007 1 commit
    • Michael Natterer's avatar
      add "submenu" property. Fix gtk_menu_item_set_submenu() to accept NULL · ece25ff1
      Michael Natterer authored
      2007-06-13  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkmenuitem.[ch]: add "submenu" property. Fix
      	gtk_menu_item_set_submenu() to accept NULL submenus and deprecate
      	gtk_menu_item_remove_submenu() because we have a properly working
      	setter now (bug #447065).
      
      	* gtk/gtk.symbols: deprecate gtk_menu_item_remove_submenu().
      
      	* gtk/gtkcombobox.c: use gtk_menu_item_set_submenu() instead of
      	gtk_menu_item_remove_submenu().
      
      
      svn path=/trunk/; revision=18125
      ece25ff1
  10. 01 Jun, 2007 1 commit
  11. 27 Apr, 2007 1 commit
    • Michael Natterer's avatar
      Merged heavily modified patch from maemo-gtk which enables opening and · 533d3fcc
      Michael Natterer authored
      2007-04-27  Michael Natterer  <mitch@imendio.com>
      
      	Merged heavily modified patch from maemo-gtk which enables opening
      	and closing submenus on click, and introduces some usability
      	changes when gtk-touchscreen-mode is enabled (bug #128968):
      
      	* gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
      	"activated_submenu" to indicate that the current mouse operation
      	(click or drag) has opened a submenu.
      
      	(gtk_menu_shell_button_press): pop up submenus without delay
      	and record the fact in "activated_submenu".
      
      	(gtk_menu_shell_button_release): if a submenu was explicitely
      	opened, or not opened by this release's button_press, or enough
      	time has passed since timeout-opening it, close the submenu here.
      
      	(gtk_menu_shell_enter_notify): when entering a menu item with
      	any mouse button pressed, open its submenu.
      
      	(gtk_real_menu_shell_move_current): in touchsreen mode, close the
      	submenu when moving the focus away from it via keyboard-navigation.
      
      	* gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
      	parameter "gboolean with_delay" so GtkMenuShell can control this
      	for the different scenarios of submenu showing.
      
      	(_gtk_menu_item_popdown_submenu): new function. also needed by
      	GtkMenuShell for closing submenus on click.
      
      	Renamed internal function gtk_menu_item_select_timeout() to
      	gtk_menu_item_popup_timeout().
      
      	(gtk_menu_item_real_popup_submenu): new utility function which
      	does the actual popup and records the exact time of the popup when
      	the menu was timeout-opened (using g_get_current_time()).
      
      	(gtk_real_menu_item_select): don't add the popup timeout when in
      	touchscreen mode.
      
      	* gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
      	first item of every opened menu.
      
      
      svn path=/trunk/; revision=17659
      533d3fcc
  12. 29 Jan, 2007 1 commit
    • Michael Natterer's avatar
      queue a draw on the parent_menu_item of this menu item's menu, to enable · 160ea46d
      Michael Natterer authored
      2007-01-29  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_select)
      	(gtk_menu_item_deselect): queue a draw on the parent_menu_item of
      	this menu item's menu, to enable themeing menu items depending on
      	whether something is selected in their submenu (patch taken from
      	maemo-gtk).
      
      
      svn path=/trunk/; revision=17234
      160ea46d
  13. 22 Dec, 2006 1 commit
  14. 09 Jun, 2006 1 commit
  15. 14 May, 2006 1 commit
  16. 02 May, 2006 1 commit
  17. 25 Apr, 2006 1 commit
    • Søren Sandmann's avatar
      Create 'composited' label. · b9d1a034
      Søren Sandmann authored
      Tue Apr 25 10:25:28 2006  Søren Sandmann  <sandmann@redhat.com>
      
      	* tests/testgtk.c (create_alpha_window): Create 'composited' label.
      
      	* tests/testgtk.c (on_composited_changed): New function, change
      	the label to say whether the screen is composited or not.
      
      	* gtk/gtkwindow.c (gtk_window_on_composited_changed): When
      	composited status change, invalidate the window and propagate the signal;.
      
      	* gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
      	if reset_type_hint is TRUE.
      
      	* gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
      	the old hints, store a shadow copy in the public window->type_hint
      	bitfield, otherwise set this field to normal. Set the private
      	field to the type hint.
      
      	* gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint.
      
      	* gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
      	"reset_type_hint" indicating whether the type hint needs to be
      	reset. New field type_hint containing a GdkWindowTypeHint.
      
      	* gtk/gtkwidget.c (propagate_composited_changed): New function to
      	propagate changes in composited status.
      	(gtk_widget_class_init): Add composited_changed signal.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.
      
      	* gtk/gtkwidget.c (gtk_widget_is_composited): New function.
      
      	* gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.
      
      	* gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
      	the item belongs to a menubar. Set the type_hint appropriately
      	depending on the outcome.
      
      	* gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.
      
      	* gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
      	changed on the attach widget.
      
      	* gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
      	set the transient_for property for menus.
      
      	* gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.
      
      	* gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
      	transient for the toplevel.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
      	transient-for, for the popup window.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
      	new window types.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
      	for new window types.
      
      	* gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
      	New function called whenever the compositing manager comes and goes.
      
      	* gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.
      
      	* gdk/x11/gdkscreen-x11.c
      	(_gdk_x11_screen_request_cm_notification, make_cm_atom,
      	check_is_composited): New functions
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
      	_gdk_x11_screen_process_owner_change when an
      	XFixesSelectionNotifyEvent is received.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
      	_gdk_x11_screen_request_cm_notification() on all screens.
      
      	* gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
      	implementation.
      
      	* gdk/gdkscreen.c (gdk_screen_class_init): New signal,
      	'composited-changed'.
      
      	* gdk/gdkwindow.h: Add new EWMH window types.
      
      	* gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
      b9d1a034
  18. 03 Mar, 2006 1 commit
    • Michael Natterer's avatar
      Applied modified patch from maemo-gtk which makes separators more · 43cb6010
      Michael Natterer authored
      2006-03-03  Michael Natterer  <mitch@imendio.com>
      
      	Applied modified patch from maemo-gtk which makes separators more
      	themeable. Fixes bug #332022.
      
      	* gtk/gtkwidget.c: added style properties "wide-separators",
      	"separator-width" and "separator-height".
      
      	* gtk/gtkhseparator.c
      	* gtk/gtkvseparator.c
      	* gtk/gtkmenuitem.c
      	* gtk/gtktoolbar.c: honor the new settings and paint separators
      	using gtk_paint_box() if wide-separators is true.
      43cb6010
  19. 13 Sep, 2005 1 commit
  20. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  21. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
      c09cc893
  22. 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
  23. 26 Mar, 2005 1 commit
  24. 22 Mar, 2005 1 commit
  25. 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
  26. 09 Mar, 2005 1 commit
  27. 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
  28. 28 Dec, 2004 1 commit
  29. 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
  30. 13 Dec, 2004 2 commits
  31. 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
  32. 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
  33. 22 Nov, 2004 1 commit
  34. 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
  35. 27 May, 2004 1 commit
  36. 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