1. 26 May, 2007 1 commit
    • Matthias Clasen's avatar
      Require gtk-doc 1.6, for signal and property links. · b80b5260
      Matthias Clasen authored
      2007-05-26  Matthias Clasen  <mclasen@redhat.com>
      
              * configure.in: Require gtk-doc 1.6, for signal and property links.
              * gtk/gtkbox.c:
              * gtk/gtkbutton.c:
              * gtk/gtkcontainer.c:
              * gtk/gtkdialog.c:
              * gtk/gtkentry.c:
              * gtk/gtkimage.c:
              * gtk/gtklabel.c:
              * gtk/gtkmisc.c:
              * gtk/gtksettings.c:
              * gtk/gtkwidget.c: Documentation improvements, link signals
              and properties where it makes sense.
      
      svn path=/trunk/; revision=17924
      b80b5260
  2. 23 May, 2007 1 commit
    • Kristian Rietveld's avatar
      translate coordinates from the window they were received on to the event · 5e59105e
      Kristian Rietveld authored
      2007-05-23  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
      	from the window they were received on to the event widget's window;
      	correct for no-window widgets after that, bail out on failure.  This
      	makes the coordinates given by GtkWidget::query-tooltip truly relative
      	to widget->window.  (#435188).
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): update docs for
      	GtkWidget::query-tooltip.
      
      
      svn path=/trunk/; revision=17896
      5e59105e
  3. 28 Mar, 2007 1 commit
  4. 16 Mar, 2007 1 commit
  5. 14 Mar, 2007 1 commit
    • Michael Natterer's avatar
      Make gtk_widget_set_extension_events() work on already realized widgets · d953ce87
      Michael Natterer authored
      2007-03-14  Michael Natterer  <mitch@imendio.com>
      
      	Make gtk_widget_set_extension_events() work on already realized
      	widgets (bug #379550, Tommi Komulainen)
      
      	* gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
      	called multiple times without leaking and work correctly when
      	already realized (don't rely on a configure event following).
      
      	* gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
      	internal function which walks the GdkWindow tree and sets the
      	extension events on all windows that belong to the widget.
      
      	(gtk_widget_realize)
      	(gtk_widget_set_extension_events): use the new function.
      
      
      svn path=/trunk/; revision=17515
      d953ce87
  6. 09 Mar, 2007 1 commit
  7. 06 Feb, 2007 1 commit
    • Kristian Rietveld's avatar
      New tooltips API. · 0ef946ed
      Kristian Rietveld authored
      2007-02-06  Kristian Rietveld  <kris@imendio.com>
      
      	New tooltips API.
      
      	* gtk/Makefile.am
      	* gtk/gtk.h
      	* gtk/gtk.symbols: build system foo.
      
      	* gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
      	hook for appropriate events.
      
      	* gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
      
      	* gtk/gtkrc.c: add style for gtk-tooltip.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): make the
      	different tooltip timeouts configurable.
      
      	* gtk/gtkwidget.[ch]: add new properties, signals, make sure
      	tooltips are hidden on unmap, destroy, update window event
      	mask on realize, hook into focus change and show help
      	handlers.
      
      	* gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
      
      	* gtk/gtktooltip.[ch]: new files.
      
      	* tests/Makefile.am
      	* tests/testtooltips.c: add test application.
      
      
      svn path=/trunk/; revision=17264
      0ef946ed
  8. 24 Jan, 2007 1 commit
    • Michael Natterer's avatar
      revert generic disabling of PRELIGHT state for the reasons given in bug · 7446ae9f
      Michael Natterer authored
      2007-01-24  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
      	of PRELIGHT state for the reasons given in bug #135666. Widget
      	states are sometimes abused or otherwise used wrongly for historic
      	reasons, causing this part of the patch to break e.g. menu items.
      
      
      svn path=/trunk/; revision=17211
      7446ae9f
  9. 28 Dec, 2006 1 commit
    • Carlos Garnacho's avatar
      Make GtkNotebook able to drop detached tabs anywhere. Bug #360225. · d42bbb64
      Carlos Garnacho authored
      2006-12-28  Carlos Garnacho  <carlosg@gnome.org>
      
              Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
              * gtk/gtkmarshalers.list: add new marshaler definition.
              * gtk/gtkenums.h: add GtkDragResult enum.
      
              * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
              operation wasn't successful.
              (_gtk_drag_source_handle_event) (gtk_drag_drop)
              (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
              (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
              (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
              gtk_drag_drop_finished() the operation result.
      
              * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
              (gtk_notebook_drag_data_get): do not call window creation hook here.
              (gtk_notebook_init): do not set "application/x-rootwindow-drop"
              target, instead connect to "drag-failed".
              (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
      d42bbb64
  10. 27 Dec, 2006 1 commit
  11. 22 Dec, 2006 1 commit
  12. 16 Nov, 2006 1 commit
    • Michael Natterer's avatar
      Add new infrastructure for notifications of failed keyboard navigation and · 7f374a74
      Michael Natterer authored
      2006-11-16  Michael Natterer  <mitch@imendio.com>
      
      	Add new infrastructure for notifications of failed keyboard
      	navigation and navigation with restricted set of keys.
      
      	The patch handles configurable beeping, navigating the GUI with
      	cursor keys only (as in phone environments), and configurable
      	wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
      	and #309291.
      
      	* gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
      	gtk-keynav-wrap-around and gtk-error-bell.
      
      	* gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
      	API to emit it. Added New function gtk_widget_error_bell() which
      	looks at the gtk-error-bell setting and calls gdk_window_beep()
      	accordingly.
      
      	* gtk/gtk.symbols: add the new widget symbols.
      
      	* gtk/gtkcellrendereraccel.c
      	* gtk/gtkimcontextsimple.c
      	* gtk/gtkmenu.c
      	* gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
      	gtk-error-bell setting instead of calling gdk_display_beep()
      	unconditionally.
      
      	* gtk/gtkcombobox.c
      	* gtk/gtkentry.c
      	* gtk/gtkiconview.c
      	* gtk/gtklabel.c
      	* gtk/gtkmenushell.c
      	* gtk/gtkspinbutton.c
      	* gtk/gtktextview.c
      	* gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
      
      	* gtk/gtkentry.c
      	* gtk/gtklabel.c
      	* gtk/gtkrange.c
      	* gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
      	cursor navigation and leave the widget if it returns FALSE.
      
      	* gtk/gtkmenushell.c
      	* gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
      	is TRUE.
      
      	* gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
      	whether to to wrap-around, and don't select active items on cursor
      	navigation if gtk-keynav-cursor-only is TRUE. Should look at
      	gtk-keynav-wrap-around too, will look into that.
      7f374a74
  13. 08 Oct, 2006 1 commit
  14. 09 Sep, 2006 1 commit
  15. 03 Sep, 2006 1 commit
  16. 21 Jul, 2006 1 commit
  17. 06 Jul, 2006 1 commit
  18. 22 Jun, 2006 1 commit
  19. 25 May, 2006 1 commit
  20. 24 May, 2006 1 commit
  21. 22 May, 2006 1 commit
  22. 14 May, 2006 1 commit
  23. 10 May, 2006 1 commit
    • Tim Janik's avatar
      applied unified patch for configurable scroll arrow sizes from bug #333632 · 4e8e3add
      Tim Janik authored
      Wed May 10 15:57:53 2006  Tim Janik  <timj@imendio.com>
      
              * applied unified patch for configurable scroll arrow sizes from
              bug #333632 and bug #325282.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): added ::scroll-arrow-hlength
              and ::scroll-arrow-vlength style properties. fixed upper limit for
              ::separator-width and ::separator-height to be MAXINT.
      
              * gtk/gtkmenu.c: use GtkWidget::scroll-arrow-vlength to determine the
              scroll arrow size, instead of using a hard coded constant.
      
              * gtk/gtknotebook.c: use GtkWidget::scroll-arrow-vlength and
              GtkWidget::scroll-arrow-hlength to determine scroll arrow sizes.
              added GtkNotebook::arrow-spacing style property to configure the
              spacing between scroll arrows.
      4e8e3add
  24. 03 May, 2006 1 commit
  25. 02 May, 2006 1 commit
  26. 29 Apr, 2006 2 commits
  27. 28 Apr, 2006 1 commit
    • Behdad Esfahbod's avatar
      Fix typo in docs. (#340063) · 0bce92f6
      Behdad Esfahbod authored
      2006-04-28  Behdad Esfahbod  <behdad@gnome.org>
      
              * gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
              docs. (#340063)
      0bce92f6
  28. 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
  29. 06 Apr, 2006 2 commits
  30. 09 Mar, 2006 1 commit
  31. 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
  32. 20 Feb, 2006 1 commit
    • Matthias Clasen's avatar
      Support input shapes: (#331070) · 1ad93a68
      Matthias Clasen authored
      2006-02-19  Matthias Clasen  <mclasen@redhat.com>
      
      	Support input shapes:  (#331070)
      
      	* gdk/gdk.symbols:
      	* gdk/gdkdisplay.h:
      	* gdk/gdkwindow.h:
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes)
      	(gdk_display_supports_input_shapes): Functions to determine
      	if a display supports shaped windows or input shapes.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region):
      	(gdk_window_input_shape_combine_mask):
      	(gdk_window_set_child_input_shapes):
      	(gdk_window_merge_child_input_shapes): Input shape versions
      	of the window shape API.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkwidget.h:
      	* gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask):
      	New function to set an input shape on a widget.
      1ad93a68
  33. 14 Feb, 2006 1 commit
  34. 01 Feb, 2006 1 commit
  35. 24 Jan, 2006 1 commit
  36. 12 Jan, 2006 1 commit
  37. 04 Jan, 2006 1 commit
    • Matthias Clasen's avatar
      Use the slice allocator for many small allocations. · 04eceaf6
      Matthias Clasen authored
      2006-01-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaccelmap.c:
      	* gtk/gtkactiongroup.c:
      	* gtk/gtkdialog.c:
      	* gtk/gtkfilesystemunix.c:
      	* gtk/gtkgc.c:
      	* gtk/gtkkeyhash.c:
      	* gtk/gtkplug.c:
      	* gtk/gtktextiter.c:
      	* gtk/gtktextlayout.c:
      	* gtk/gtkuimanager.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkwindow.c:
      	* gtk/gtkxembed.c: Use the slice allocator for many small
      	allocations.
      
      	* gtk/gtkcolorsel.c:
      	* gtk/gtktreeview.c: Use IPN.
      
      	* gtk/gtkwidget.c: Remove an unused field from the AccelPath
      	struct.
      04eceaf6
  38. 05 Dec, 2005 1 commit
    • Matthias Clasen's avatar
      Use g_slice instead of mem chunks. · 7dc70fba
      Matthias Clasen authored
      2005-12-05  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.c:
      	* gtk/gtkuimanager.c:
      	* gtk/gtktreedatalist.c:
      	* gtk/gtktext.c:
      	* gtk/gtkmain.c:
      	* gtk/gtkitemfactory.c:
      	* gtk/gtkseparator.[hc]:
      	* gtk/gtkclist.[hc]:
      	* gtk/gtkctree.c:
      	* gtk/gtkgc.c: Use g_slice instead of mem chunks.
      7dc70fba