1. 27 Nov, 2003 1 commit
    • Tim Janik's avatar
      allow accel activation depending on sensitivity and the attach widget. · 448b576d
      Tim Janik authored
      Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
              * gtk/gtkmenu.c: allow accel activation depending on sensitivity
              and the attach widget.
              * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
              sensitivity and the parent menu.
              * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
              checks whether accelerators may activate a widget. the default handler
              demands the widget be sensitive and visible+viewable.
              * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
  2. 11 Jul, 2003 1 commit
    • Kristian Rietveld's avatar
      Landing GtkTreeModelFilter and the completion code. (Test program and · edef7d00
      Kristian Rietveld authored
      Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
      	Landing GtkTreeModelFilter and the completion code. (Test program
      	and documentation will follow next week).
      	* gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
      	gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
      	* gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
      	necessary code to hook up completion.
      	* gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
      	GtkCellLayout interface.
      	* gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
      	* gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
      	source files.
  3. 04 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      new test for removing items · f91ae4ed
      Soeren Sandmann authored
      Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* tests/stresstest-toolbar.c: new test for removing items
      	* tests/testtoolbar.c: add a popup menu
      	* gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
      	  assert widget->parent == container when the container is a
      	* gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
      	simpler. Also make correct.
      	* gtk/gtktoolbar.c (gtk_toolbar_button_press): make
      	popup_context_menu a boolean handled signal.
  4. 29 Jun, 2003 1 commit
    • Soeren Sandmann's avatar
      gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.c · fa336d28
      Soeren Sandmann authored
      Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtkradiotoolbutton.c
      	* gtkradiotoolbutton.h
      	* gtktoggletoolbutton.c
      	* gtktoggletoolbutton.h
      	* gtktoolbutton.c
      	* gtktoolbutton.h
      	* gtktoolitem.c
      	* gtktoolitem.h
      	* gtktoolbar.c
      	* gtktoolbar.h
      	* gtkseparatortoolitem.c
      	* gtkseparatortoolitem.h
      	New toolbar.
  5. 26 Nov, 2002 1 commit
    • Kristian Rietveld's avatar
      add a gtk_list_store_sort_iter_changed line for some special case ... · a09f497c
      Kristian Rietveld authored
      Tue Nov 26 22:26:04 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
              add a gtk_list_store_sort_iter_changed line for some special
              case ... (#96647 (issue 1), testcases from Soeren Sandmann and
              Daniel Elstner).
      Tue Nov 26 22:18:06 2002  Kristian Rietveld  <kris@gtk.org>
              Inconsistent state for toggle renderers, requested by Paolo Bacchilega
              in #88130.
              * gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
              * gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
              fix some indentation issues.
              * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
              (gtk_cell_renderer_toggle_render): add an inconsistent property.
              * gtk/gtkstyle.c (gtk_default_draw_check),
              (gtk_default_draw_option): support drawing inconsistent
              options/checks for cells.
      Tue Nov 26 22:14:14 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
              (gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
              calling _editing_done twice (which has nasty side-effects). (#96647,
              (issue 2) testcase from Soeren Sandmann).
      Tue Nov 26 22:12:21 2002  Kristian Rietveld  <kris@gtk.org>
              #82739, patch from Padraig O'Briain.
              * gtk/gtktreeviewcolumn.[ch]: add
      Tue Nov 26 22:06:29 2002  Kristian Rietveld  <kris@gtk.org>
              Yes, this chunk breaks ABI compatibility. Owen knows about it and
              agreed with it. It doesn't break ABI that bad though, things will
              still work. Please keep it silent :P.
              This patch fixes some keynav issues reported by Narayana Pattipati
              in #81633. (Also mentioned in #92037 (Sun tracking bug)).
              * gtk/gtkmarshalers.list: add two silly marshalers
              * gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
              (gtk_tree_view_real_start_interactive_search): change the return
              type from void to gboolean, update prototypes, functions, signals and
              entries in GtkTreeViewClass,
              (gtk_tree_view_class_init): add select_cursor_row binding for
              enter key,
              (gtk_tree_view_key_press): only navigate the header button if the
              header is also visible ...
      Tue Nov 26 22:05:48 2002  Kristian Rietveld  <kris@gtk.org>
              API bit of #75745, reported by Richard Hult.
              * gtk/gtkcellrenderer.h (GtkCellRendererState): add
              GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
  6. 14 May, 2002 1 commit
    • Owen Taylor's avatar
      Set the width of the layout to the actual wrap width (our requisition) not · 11aed263
      Owen Taylor authored
      Tue May 14 16:44:09 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtklabel.c (gtk_label_ensure_layout): Set
              the width of the layout to the actual wrap width
              (our requisition) not the width we set when calculating
              the width. This results in the lines being justified
              within the correct area. (#79157, Anders Carlsson)
              * gtk/gtkaccelgroup.c gtk/gtkmarshelers.list: Corrected
              registered parameter types of "accel_activate" and
              "accel_changed" signals. (Patch from Murray Cumming, #78798)
              * gtk/gtkrc.c (gtk_rc_make_default_dir): Switch
              binary-version and type to correspond to the
              current ordering in _gtk_get_module_path.
              (#78746, Sergey Kuzminov)
              * gtk/gtkrc.c (gtk_rc_get_module_dir): Add docs
              pointing to the GTK_PATH documentation.
              * gtk/Makefile.am (uninstall-local): Delete
              key themes as well. (#81286, Kristian Rietveld.)
  7. 27 Mar, 2002 1 commit
  8. 16 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown · 59fc8ff8
      Owen Taylor authored
      Fri Feb 15 20:09:45 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list:
              Add key bindings on GtkScrolledWindow for arrow keys,
              PageUp/PageDown Home/End to scroll the window.
              Bind Control-[Shift]-Tab to focus out of the scrolled
              window entirely. Allow the scrolled window to be
              focused if no child can be focused. (#63480)
              * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED()
              check - if we have visible but not mapped widgets
              (inside a unshown notebook tab, for instance), we need
              to track their size. (#65087, reported by Damon Chaplin.)
              * gtk/gtkcolorsel.c (palette_change_color): Shut up
              a warning.
  9. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      add new signal 'adjust_bounds' to potentialy change the bounds before · f0ed36b3
      Jody Goldberg authored
      2002-02-14  Jody Goldberg <jody@gnome.org>
      	* gtk/gtkrange.c (gtk_range_class_init) : add new signal
      	  'adjust_bounds' to potentialy change the bounds before assigning the
      	  new value and camping it to the existing bounds.
      	(gtk_range_internal_set_value) : used here. #68800.
      	* gtk/gtkmarshalers.list : add VOID:DOUBLE
  10. 17 Jan, 2002 1 commit
    • Havoc Pennington's avatar
      new function (which I then decided not to use but I think it's needed to · 9e404f2a
      Havoc Pennington authored
      2002-01-17  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
      	function (which I then decided not to use but I think it's needed
      	to fix #68963
      	* gtk/gtktextview.c: add page_horizontally action signal and
      	implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig,
      	hackily modified to avoid adding GTK_MOVEMENT_ API. Part of
      	* gtk/gtkmarshalers.list: add NONE:INT,BOOL
  11. 04 Dec, 2001 1 commit
  12. 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.
  13. 13 Nov, 2001 1 commit
    • Tim Janik's avatar
      added gtkaccelmap.sgml. other updates. · d07573c0
      Tim Janik authored
      Mon Nov 12 23:06:38 2001  Tim Janik  <timj@gtk.org>
              * added gtkaccelmap.sgml. other updates.
      Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
      	* gtk/maketypes.awk: fix type utils generation on unix.
      	* gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
      	* gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
      	removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
      	gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
      	gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
      	gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
      	introduced ::accel_changed signal for change notification, and
      	gtk_accel_group_connect/disconnect to connect closures to accel groups.
      	made gtk_accel_group_attach/detach and gtk_accel_group_activate private
      	deprecated gtk_accel_group_ref/unref.
      	* gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
      	to accel group changed notification and basically operate on closures.
      	removed gtk_accel_label_get_accel_object and
      	introduced gtk_accel_label_set_accel_closure, and for convenience,
      	* gtk/gtkitemfactory.[hc]: removed accelerator propagation code
      	which mostly moved into gtkaccelmap.[hc].
      	removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
      	and gtk_item_factory_print_func.
      	* gtk/gtkmain.c: call _gtk_accel_map_init().
      	* gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
      	that associates an accelerator path with menu items, through which
      	persistent accelerator settings on menu items are enabled.
      	* gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
      	paths of menu item can be default constructed to allow installation
      	of accelerators on menu items that don't come with an accelerator
      	binding by default.
      	* gtk/gtksettings.c: fix STRING type rc settings by special casing
      	them appropriately in the parser.
      	* gtk/gtksignal.[hc]: allow a class function offset of 0 for
      	* gtk/gtkwidget.[hc]: accelerator API revamp.
      	removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
      	gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
      	accelerators maintained through gtk_widget_add/remove_accelerator()
      	are not runtime changable now, the correct sequence to setup a
      	widget for runtime changable accelerators is now:
      	  gtk_accel_map_add_entry(accel_path, key, mods);
      	  _gtk_widget_set_accel_path(widget, accel_path, accel_group);
      	* gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
      	group changes (as well as mnemonic changes) through the new signal
      Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
      	* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
      	GString->string conversions.
  14. 04 Nov, 2001 1 commit
  15. 01 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Add: - A ::retrieve_surrounding signal that asks the widget for context · a1fe2ac1
      Owen Taylor authored
      Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkimcontext.[ch]: Add:
      	  - A ::retrieve_surrounding signal that asks the widget for
      	    context around the insertion point.
      	  - A ::delete_surrounding signal that asks the widget to
      	    delete context aroudn the insertion point.
      	  - gtk_im_context_set_context() for widgets to set context
      	    around the insertion point in response to ::retrieve_context.
      	  - gtk_im_context_get_context() for context to get context
      	    around the insertion point
      	* gtkmarshal.list: Add BOOL:INT,INT
      	* gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
      	set_surrounding() methods, and the ::retrieve_surrounding /
      	::delete_surrounding signals.
      	* gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
      	GtkIMContext::retrieve_surrounding / ::delete_surrounding
  16. 25 Sep, 2001 2 commits
    • Jonathan Blandford's avatar
      Make a GtkCellEditable (get_widget_window_size): Change to let it honor · 92841cb9
      Jonathan Blandford authored
      Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtkentry.c: Make a GtkCellEditable
      	(get_widget_window_size): Change to let it honor size_allocate
      	when a CellEditable.
      	* gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
      	editable changes.
      	(gtk_tree_view_set_cursor): Now you can set the cursor
      	horizontally, as well as start editing.
      	* gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
      	code to look more like the other check buttons.
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
      	Change the way we calculate cell size.
      	* gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
      	* demos/gtk-demo/sizegroup.c: Add mnemonics.
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
      	Fix logic.
      	* gtk/gtkcellrenderertext.c: Change to be editable.
      	* gtk/gtkcellrenderertoggle.c: Change to be activatable.
      	* test/testtreesort.c: Fix misspelling
      	* test/testreecolumns.c: Add mnemonics.
      	* test/testreeedit.c: New test program.
    • James Henstridge's avatar
      add marshal function types. · 80e87c94
      James Henstridge authored
      2001-09-24  James Henstridge  <james@daa.com.au>
      	* gtk/gtkmarshal.list (VOID): add marshal function types.
      	* gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
      	(gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
      	with no-op copy/free functions.
      	* gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
      	GtkCTreeNode get_type function.
  17. 12 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Rename interface signals to make them more clear. Also, change · fc8304b1
      Jonathan Blandford authored
      Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
      	signals to make them more clear.  Also, change ::range_changed to
      	* gtk/gtktreemodel.c: Adjust to interface change
      	* gtk/gtktreemodel.h: ditto
      	* gtk/gtktreemodelsort.c: ditto
      	* gtk/gtktreestore.c: ditto
      	* gtk/gtkliststore.c: ditto
      	* gtk/gtktreeview.c: ditto
      	* tests/testtreecolumns.c: ditto
      	* gtk/gtkmarshal.list: Actually remove a marshaller!
  18. 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
      	* 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.
  19. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      Clip the retrieved image data to the screen, using a server grab to avoid · 0bee26c7
      Havoc Pennington authored
      2001-06-28  Havoc Pennington  <hp@pobox.com>
      	* gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
      	image data to the screen, using a server grab to avoid race
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	check for NULL return from gtk_image_new_from_stock(), it never
      	returns NULL.
      	(gtk_item_factory_create_item): fix bug where we parsed the stock
      	ID as an inline pixbuf
      	* gtk/gtktext.c (gtk_text_key_press): numeric keypad support
      	* gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
      	support (should be using binding set here)
      	* gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
      	support (should be using binding set here)
      	* gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
      	* gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
      	* gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
      	* gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_filter_keypress): keypad
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
      	* gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
      	* gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
      	* gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
      	should be binding-setted)
      	* gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
      	* gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
      	* gtk/gtkcalendar.c: numeric keypad fixes
      	* gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	clip the render area to the drawable's clip region in advance,
      	so we don't get data from the server that we don't need.
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	check return value of gdk_pixbuf_get_from_drawable(), fall back
      	to bilevel alpha if we can't get the pixbuf to composite against.
      	* gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
      	* gdk/gdkimage.c (gdk_image_get_colormap): add
      	gdk_image_set_colormap, gdk_image_get_colormap
      	* gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
      	take a region of the image, instead of converting the entire
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
      	keybinding signal. Add default bindings for it. Add default
      	handler for show_help that shows the tooltip for the widget.
      	* gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
      	"close" keybinding signal, remove key press handler.
      	* gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
      	it's not our usual practice to leave a deprecated function around
      	with a runtime warning, plus we don't want it to appear in docs,
      	plus if we make them yellow no one will want to change them
  20. 08 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      geez, don't call g_list funcs on GSList · 74e7da21
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
      	don't call g_list funcs on GSList
      	* gtk/gtkwidget.c (gtk_widget_child_focus): replaces
      	gtk_container_focus(), since some widgets have focusable locations
      	which are not other widgets. These widgets should not have to be
      	containers just to manage the focus. For example, GtkHSV is
      	currently a container for no good reason. Also, this cleans
      	up the "if (is_container && is_sensitive && is_drawable)
      	container_focus ()" mess in widget implementations.
      	* gtk/gtkcontainer.c (gtk_container_focus): deprecate this
      	function, and have it just call gtk_widget_child_focus().
      	* gtk/gtkhsv.c: derive from widget not container
      	Throughout: fix to reflect GtkContainer::focus change
  21. 07 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Handle key bindings to expand and collapse rows. · 157dc163
      Jonathan Blandford authored
      Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtktreeview.c
      	(gtk_tree_view_real_expand_collapse_cursor_row): Handle key
      	bindings to expand and collapse rows.
      	(gtk_tree_view_real_select_cursor_parent): New key binding.
      	(gtk_tree_view_real_toggle_cursor_row): New key binding.
      	* gtk/gtkmarshal.list: new
      	marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
  22. 07 May, 2001 1 commit
    • Havoc Pennington's avatar
      fix some shell typos · b4e4a0ed
      Havoc Pennington authored
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      	* configure.in: fix some shell typos
      	* gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
      	* gtk/gtkimage.c: handle animations
      	* gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
      	border_width * 2, not just border_width
      	* gtk/gtkscale.c: add "format_value" signal to allow people
      	to override the way values are drawn.
      	(gtk_scale_get_value_size): fix width/height mistake,
      	and compute size from actual displayed text, not
      	from made-up text.
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
      	signal registration
      	* tests/testtext.c: Add "Remove all tags" menu item for testing
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
      	* demos/gtk-demo/main.c (main): add hack so we can find modules
      	without installing gtk
      	* demos/gtk-demo/textview.c (insert_text): demo font scaling
      	* gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
      	(gtk_cell_renderer_text_set_property): remove some bogus
      	* gtk/gtktexttag.c: add "scale" property which is a font scaling
      	* gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
      	to layout
      	* gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      	* pixops/pixops.c (pixops_process): merge fix from stable: Patch
      	 from hoshem@mel.comcen.com.au to fix nonzero X offsets.  Fixes
      	 bug #50371.
              * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge
      	from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix
      	confusion of using "src" instead of "p".
              (pixops_composite_color_nearest): Use a more accurate (and
      	correct, to begin with) compositing method.  This cures checks
      	showing through on images with no alpha.
      	* gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing
      	bytes unfilled.
      	* gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints
      	* gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change
      	area_updated signal to use signed ints.  Removed animation-related
      	* io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive
      	rewrite action
      	* gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract
      	all the pesky details. Remove old frame-based API. Make
      	GdkPixbufAnimation an abstract base class, derived by the loaders.
  23. 28 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      voc Pennington <hp@redhat.com> · 7ad36413
      Havoc Pennington authored
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
      	(gtk_text_layout_move_iter_to_next_line): fix these two for
      	invisible text, lots of other stuff still hosed.
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
      	new function, replaces the get/set palette stuff. This function
      	is intended for use by libgnomeui which should set the hook to a
      	thing which sets the palette in GConf, and we need the
      	GConf-to-xsettings proxy which will result in the change being
      	propagated back to the GTK app.
      	* gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
      	about unusable signals that it may be because the signal has
      	* gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
      	style, otherwise gtkrc.c won't know to create a new GtkStyle for
      	(gtk_widget_modify_color_component): call
      	gtk_widget_modify_style() so the rc style will get copied.
      	(gtk_widget_modify_font): ditto
      	* gtk/gtkrc.c: make a couple variables static
      	* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
      	help button by default, since it does nothing
      	* gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
      	around with UI
      	* gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
      	so we can have tooltips
      	* gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
      	can have tooltips
      	* gdk/gdkimage.h: mark gdk_image_new_bitmap with
      	GDK_ENABLE_BROKEN, because its memory behavior is completely
      	* gtk/gtknotebook.c: remove key press handler, replace with
      	binding set, add numeric keypad support
      	* gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
      	* gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
      	* gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
      	addition to plain Delete
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): accept
      	GDK_KP_Enter in addition to GDK_Return
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
      	activate on entry instead of key press
      	(gtk_font_selection_on_clist_key_press): get
      	rid of this signal handler, not needed with new font sel.
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
      	no-longer-needed emit_stop_by_name(), just return TRUE
      	* gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
      	cruft, this widget is no longer focusable.
      	* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
      	gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
      	move_slider action signal, add binding set for vscale/hscale, in
      	the process support numeric keypad
      	* gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
      	make GDK_Return and GDK_KP_Enter activate the entry via
      	binding set, instead of hardcoded.
  24. 02 Apr, 2001 2 commits
    • Jonathan Blandford's avatar
      Bug fix to make trees work again when not sorted. · 461216d4
      Jonathan Blandford authored
      Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
      	work again when not sorted.
      	* gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
      	and "expand_row" signal, closing bug 52578.
      	* gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
      	* gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
    • Jonathan Blandford's avatar
      BOXED,BOXED,BOXED,BOXED): new marshaller. · 29985af0
      Jonathan Blandford authored
      Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
      	* gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
      	"changed" signal to "range_changed".
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
      	removing a tree from one model would remove all trees from that
      	* gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
      	changed signal instead.
  25. 28 Mar, 2001 2 commits
    • Owen Taylor's avatar
      Apply patch from Nils Barth fixing event return values. (#51041) · a7f29c4e
      Owen Taylor authored
      Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
      	Nils Barth fixing event return values. (#51041)
      	* gtk/gtkwidget.c: Fix some return values for default
      	* gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
      	return values for trough_keys functions.
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
      	value for add_accelerator (shoudl have been a void
      	* gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
      	Fix return type of EVENT.
      	* gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
      	signal return a boolean.
    • Jonathan Blandford's avatar
      More work on implementing sortable interface. · 88bbc2a5
      Jonathan Blandford authored
      Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtkliststore.c: More work on implementing sortable
  26. 23 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      fix braino. New interface to add cleanup sortable support. · 21fd434c
      Jonathan Blandford authored
      Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	fix braino.
      	* gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
      	* gtk/gtktreeview.c: Addition of initial sortable support.
      	* gtk/gtktreestore.c: Addition of initial sortable support.
      	* gtk/gtkliststore.c: Addition of initial sortable support.
      	* gtk/gtkmarshal.list: yet another marshaller.
      	* gtk/gtktreedatallist.[ch]: shared code between the store models
      	for handling sorting headers.
  27. 21 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and removed · de5eafed
      Alexander Larsson authored
      2001-03-21  Alexander Larsson  <alexl@redhat.com>
              * gtk/gtkbutton.[ch]:
      	* gtk/gtkdialog.c:
      	Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
      	removed accel_group argument. Renamed gtk_button_new_accel() to
      	gtk_button_new_with_mnemonic() and removed accel_group argument.
      	* gtk/gtkcheckbutton.[ch]:
      	New function gtk_check_button_new_with_mnemonic().
      	* gtk/gtkentry.c:
      	Override activate_mnemonic and just grab focus.
      	* gtk/gtkitemfactory.c:
      	Don't add menu uline accel group, instead use mnemonics support.
      	* gtk/gtklabel.[ch]:
      	New support for mnemonics.
      	* gtk/gtkmarshal.list:
      	Needed BOOLEAN:BOOLEAN for activate_mnemonic.
      	* gtk/gtkmenu.[c]:
      	* gtkmenushell.c:
      	Use mnemonics instead of accel groups for uline
      	support in menu items.
      	Removed gtk_menu_get_uline_accel_group() and
      	* gtk/gtkmenuitem.c:
      	Override activate_mnemonic to handle switching between
      	menu items if there are collisions.
      	* gtk/gtknotebook.c:
      	Connect to activate_mnemonic on the tab_label, so that
      	activating it switches to that notebook page.
      	* gtk/gtkwidget.[ch]:
      	Add activate_mnemonic signal. New function
      	gtk_widget_activate_mnemonic() to emit it.
      	Default implementation does activate/grab_focus.
      	* gtk/gtkwindow.[ch]:
      	Add support for mnemonics in windows.
      	New functions:
      	gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
      	gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
      	* gtk/testgtk.c:
      	Update to function name changes.
  28. 09 Mar, 2001 1 commit
  29. 07 Mar, 2001 1 commit
    • Tim Janik's avatar
      marshaller fixes. · 35af5c4e
      Tim Janik authored
      Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
              * gtk/*.c: marshaller fixes.
              * gtk/gtkmarshal.list: extreme cleanup.
              * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
              param spec for now.
              * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
              where appliable.
              * gtk/gtktypeutils.[hc]: updates to GLib API changes.
              special cased autogenerated boxed types from gtktypebuiltins_ids.c
              which are not reference counted:
              GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
              PangoFontDescription, GtkTreeIter and GtkTreePath.
      Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
              * gtk/gtktreeselection.h:
              * gtk/gtktreemodel.c:
              * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
              file should be included directly, and gobject/gmarshal.h
              as well as gtk/gtkmarshal.h even can't be included directly.
              * Makefile.am: grr, install gtk-config-2.0.
              * gtk/testgtk.c:
              * gtk/simple.c:
              * gtk/gtkmenu.c:
              * gtk/gtkitemfactory.c: use g_object_connect() instead of
              passing "*signal*::*" args to gtk_widget_set().
              * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
              * gtk/*.c: removed trailer arg from property setters and getters.
              macro fixups.
      Thu Mar  1 04:01:57 2001  Tim Janik  <timj@gtk.org>
              * test-gdk-pixbuf.c: fixed includes.
  30. 18 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      do begin/end user action where appropriate (gtk_text_view_commit_handler): · 00a6a1b2
      Havoc Pennington authored
      2000-12-18  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
      	begin/end user action where appropriate
      	(gtk_text_view_commit_handler): add begin/end user action
      	* gtk/gtktextbuffer.c: add begin/end user action signals, and
      	bracket interactive operations with begin/end user action pair.
      	* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
      	"interactive" arg from insert_text and delete_text signals.
      	Add begin_user_action, end_user_action signals
      	(gtk_text_buffer_end_user_action): New functions to delimit
      	a user-visible action
      	* gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
  31. 14 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      remove unused call to get_last_line() · 94ec8cff
      Havoc Pennington authored
      2000-12-14  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
      	unused call to get_last_line()
      	* gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
      	here until boxed is working (and maybe after that - we should
      	really not gratuitously break old code)
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
      	specific types for font_desc and tabs args, move them to
      	GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
      	fixed. Move GdkColor args to GTK_TYPE_POINTER also.
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
      	use GTK_TYPE_POINTER for signal signatures as a hack-around
      	* gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
      	* gtk/gtktextlayout.c (line_display_iter_to_index):
      	make static
      	(line_display_index_to_iter): make static
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
      	to marshal a string not a boxed
      	* gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
      	* gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
      	since the UTF-8 isn't validated yet
      	* gtk/gtktextsegment.c (char_segment_check_func): don't require
      	lines to end in '\n'
      	* gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
      	forward_to_delimiters, and grapheme boundaries
      	(gtk_text_view_delete_from_cursor): properly handle non-newline
      	delimiters, and grapheme boundaries
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
      	to gtk_text_iter_forward_to_delimiters, and make it work properly
      	if empty lines end with a character other than '\n'
      	* gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
  32. 10 Nov, 2000 1 commit
    • Jonathan Blandford's avatar
      use the new BOXED marshallers. · f8faec45
      Jonathan Blandford authored
      Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
      	* gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
      	BOXED marshallers.
      	* gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
      	(gtk_list_store_class_init): use the new BOXED marshallers.
      	* gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
      	new_with_values to new_with_types.
      	(gtk_tree_store_get_column_type): add this.
      	(gtk_tree_store_class_init): use the new BOXED marshallers.
      	* gtk/gtkmarshal.list: Added a number of BOXED marshallers to
      	mirror some POINTER marshallers.
  33. 03 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Get widgets working on the btree/buffer side. Display of them still · ca83d0a3
      Havoc Pennington authored
      2000-11-03  Havoc Pennington  <hp@redhat.com>
              Get widgets working on the btree/buffer side. Display of them
      	still doesn't work.
      	* gtk/gtktextview.c: start implementing child widget stuff
      	* gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
      	* gtk/gtktextlayout.c: handle embedded widgets
      	* gtk/gtktextdisplay.c: handle embedded widgets
      	* gtk/gtktextchild.c: Implement all the child anchor goo
      	* gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
      	* gtk/gtktextbtree.c: Add child anchor table to the btree struct
      	(insert_pixbuf_or_widget_segment): abstract out common portions of
      	creating a child anchor or a pixbuf segment.
      	(gtk_text_btree_create_child_anchor): new function
      	(gtk_text_btree_unregister_child_anchor): new function
      	* gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
      	allocate_child signal on GtkTextLayout
      	* gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
      	(gtk_text_iter_get_child_anchor): new function
      	* gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
      	default handler for the changed signal, which calls
      	gtk_text_buffer_set_modified(), instead of just always emitting
      	changed then calling set_modified() manually. I guess this is
      	maybe more flexible. It seems logical.
  34. 02 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Use GTK_TYPE_TEXT_ITER and BOXED marshallers · 820e79a4
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
      GTK_TYPE_TEXT_ITER and BOXED marshallers
      * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
      * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
      * gtk/gtk-boxed.defs: add GtkTextIter
      * gtk/gtkmarshal.list: Add marshallers for text widget that
      properly use OBJECT and BOXED
  35. 28 Oct, 2000 2 commits
  36. 27 Oct, 2000 1 commit