1. 19 Feb, 2010 1 commit
  2. 20 Dec, 2009 1 commit
    • Matthias Clasen's avatar
      Only show the mnemonic underline when pressing Alt · c59f76fd
      Matthias Clasen authored
      ...and show them in menus when navigating the menu with the keyboard.
      This is similar to what other platforms do, and reduces visual clutter.
      There is a setting to control this. Most of the work on this patch was
      done by Thomas Wood. See bug 588554.
      c59f76fd
  3. 16 Dec, 2009 1 commit
    • Colin Walters's avatar
      [introspection] Merge in Gtk-custom.c annotations · 6529c076
      Colin Walters authored
      The Gtk-custom.c file in gir-repository contained a number of
      introspection annotations.  Merge those into the GTK source files.
      
      Some documentation was moved from the tmpl/ files to accomodate
      the addition of annotations.
      6529c076
  4. 22 Jun, 2009 1 commit
    • Tristan Van Berkom's avatar
      Accelerators failed for submenus (GNOME bug 582025) · 515a0b61
      Tristan Van Berkom authored
      gtk/gtkmenuitem.c: Override custom_tag_finished() for "accelerator" and search
      the correct toplevel GtkWindow to attach accelerators to menu items.
      
      gtk/gtkwidget.[ch]: Added _gtk_widget_buildable_finish_accelerator() to allow
      subclasses to specify a toplevel window to associate with when parsing <accelerator>
      tags
      515a0b61
  5. 22 Feb, 2009 1 commit
  6. 23 Jan, 2009 1 commit
    • Matthias Clasen's avatar
      i Bug 560228 – Add "action-controller" property to GtkWidgetClass · bb72b647
      Matthias Clasen authored
              Rework the way actions and proxies interact, to make the
              interaction less ad hoc, more extensible, and better suited
              for support in GUI builders like glade.
      
              To be used as a proxy, a widget must now implement the
              GtkActivatable interface, and GtkActivatable implementations
              are responsible for syncing their appearance with the action
              and for activating the action.
      
              All the widgets that are commonly used as proxies implement
              GtkActivatable now.
      
              Patch by Tristan van Berkom.
      
              * gtk/gtkactivatable.[hc]: The GtkActivatable interface.
      
              * gtk/gtkbutton.c:
              * gtk/gtktogglebutton.c:
              * gtk/gtktoolitem.c:
              * gtk/gtktoolbutton.c:
              * gtk/gtktoggletoolbutton.c:
              * gtk/gtkmenuitem.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkimagemenuitem.c:
              * gtk/gtkradiomenuitem.c:
              * gtk/gtkrecentchooserprivate.h:
              * gtk/gtkrecentchooser.c:
              * gtk/gtkrecentchooserdefault.c:
              * gtk/gtkrecentchoosermenu.c: Implement GtkActivatable.
              * gtk/gtkaction.[hc]: Move appearance synchronization to
              GtkActivatable implementations.
      
              * gtk/gtkradioaction.c:
              * gtk/gtkrecentaction.c:
              * gtk/gtktoggleaction.c:
              * gtk/gtkactiongroup.c: Adapt.
      
              * gtk/gtk.h: Include gtkactivatable.h
              * gtk/gtk.symbols: Add new functions
      
      
      svn path=/trunk/; revision=22195
      bb72b647
  7. 13 Nov, 2008 1 commit
  8. 06 Nov, 2008 2 commits
    • Tristan Van Berkom's avatar
      Made buildable and added support for adding children of type "submenu" · 4858ae47
      Tristan Van Berkom authored
      
      	* gtk/gtkmenuitem.c: Made buildable and added support for adding children
      	of type "submenu"
      
      	* gtk/gtkwindow.c: Added support for custom tag "accel-groups" to add GtkAccelGroups
      	to the window.
      
      	* gtk/gtkcontainer.c: Added builder contextual warnings in buildable_add_child()
      
      	* gtk/tests/builder.c: Added tests for buildable menus (test that accelerators are
      	properly connected on stock items, test the menu hierarchy, test permission to
      	add alien/custom menuitem children).
      
      	* docs/reference/gtk/tmpl/gtkbuilder.sgml, docs/reference/gtk/tmpl/gtkwindow.sgml,
      	docs/reference/gtk/tmpl/gtkmenuitem.sgml: Updated docs for buildable submenus
      	and accel groups.
      
      
      svn path=/trunk/; revision=21767
      4858ae47
    • Tristan Van Berkom's avatar
      added new apis gtk_menu_item_[set/get]_label() and · 70a5f538
      Tristan Van Berkom authored
      2008-11-06  Tristan Van Berkom <tvb@gnome.org>
      
      	* gtk/gtkmenuitem.[ch]: added new apis gtk_menu_item_[set/get]_label() and
      	gtk_menu_item_[set/get]_use_underline() with "label" and "use-underline"
      	properties, constructors cleaned up to use g_object_new().
      	GtkMenuItemClass take new vfuncs ->get/set_label().
      
      	* gtk/gtkcheckmenuitem.c: constructors cleaned up to use g_object_new().
      
      	* gtk/gtkimagemenuitem.[ch]: added new apis gtk_image_menu_item_[get/set]_use_stock()
      	and gtk_image_menu_item_set_accel_group() with "use-stock" and write-only
      	"accel-group" properties. constructors cleaned up to use g_object_new().
      
      
      svn path=/trunk/; revision=21766
      70a5f538
  9. 03 Sep, 2008 1 commit
  10. 18 Aug, 2008 1 commit
  11. 13 Aug, 2008 1 commit
    • Michael Natterer's avatar
      get rid of the deprecated aliases NONE and BOOL. · e0bbf169
      Michael Natterer authored
      2008-08-13  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkmarshalers.list: get rid of the deprecated aliases NONE
      	and BOOL.
      
      	* gtk/gtkdialog.c
      	* gtk/gtkentrycompletion.c
      	* gtk/gtkmenuitem.c
      	* gtk/gtkoldeditable.c
      	* gtk/gtkrange.c
      	* gtk/gtktreeview.c
      	* gtk/gtkwidget.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21111
      e0bbf169
  12. 12 Aug, 2008 2 commits
    • Michael Natterer's avatar
      gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.c · d9d33796
      Michael Natterer authored
      2008-08-12  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkaccellabel.c
      	* gtk/gtkcalendar.c
      	* gtk/gtkclist.c
      	* gtk/gtkentry.c
      	* gtk/gtkeventbox.c
      	* gtk/gtkfilechooserbutton.c
      	* gtk/gtkfilechooserdefault.c
      	* gtk/gtkhandlebox.c
      	* gtk/gtkhsv.c
      	* gtk/gtkiconview.c
      	* gtk/gtkimage.c
      	* gtk/gtklayout.c
      	* gtk/gtklistitem.c
      	* gtk/gtkmenuitem.c
      	* gtk/gtkmessagedialog.c
      	* gtk/gtknotebook.c
      	* gtk/gtkpaned.c
      	* gtk/gtkpathbar.c
      	* gtk/gtkplug.c
      	* gtk/gtkprintunixdialog.c
      	* gtk/gtkrange.c
      	* gtk/gtkrecentchooserdefault.c
      	* gtk/gtkruler.c
      	* gtk/gtksocket.c
      	* gtk/gtktext.c
      	* gtk/gtktextview.c
      	* gtk/gtktoolbar.c
      	* gtk/gtktreeitem.c
      	* gtk/gtktreeview.c
      	* gtk/gtkviewport.c
      	* gtk/gtkwin32embedwidget.c: chain up unconditionally in
      	realize(), unrealize(), map(), unmap(), style_set(),
      	key_press_event() and size_request()
      
      
      svn path=/trunk/; revision=21088
      d9d33796
    • Michael Natterer's avatar
      consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) · e18d3c6f
      Michael Natterer authored
      2008-08-12  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/*.c: consistently chain up using
      	GTK_FOO_CLASS(parent_class)->bar(instance) instead of
      	(*GTK_FOO_CLASS(parent_class))->bar(instance).
      
      
      svn path=/trunk/; revision=21085
      e18d3c6f
  13. 11 Aug, 2008 1 commit
  14. 03 Jul, 2008 1 commit
  15. 02 Jul, 2008 1 commit
    • Michael Natterer's avatar
      Bug 537591 – Don't hardcode minimum width of menuitems · a82c1800
      Michael Natterer authored
      2008-07-02  Michael Natterer  <mitch@imendio.com>
      
      	Bug 537591 – Don't hardcode minimum width of menuitems
      
      	* gtk/gtkmenuitem.c: applied patch from Christian Dywan which
      	introduces a "width-chars" style property which replaces the
      	hardcoded minimum width of menuitems with submenu. Patch
      	extracted from Maemo-GTK+.
      
      
      svn path=/trunk/; revision=20733
      a82c1800
  16. 01 Jul, 2008 1 commit
  17. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  18. 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
  19. 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
  20. 19 Jun, 2008 1 commit
  21. 07 Jun, 2008 1 commit
  22. 25 May, 2008 1 commit
  23. 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
  24. 30 Nov, 2007 1 commit
  25. 21 Nov, 2007 1 commit
  26. 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
  27. 01 Jun, 2007 1 commit
  28. 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
  29. 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
  30. 22 Dec, 2006 1 commit
  31. 09 Jun, 2006 1 commit
  32. 14 May, 2006 1 commit
  33. 02 May, 2006 1 commit
  34. 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
  35. 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