1. 04 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Add a create-window signal that allows to override the global · 17df8751
      Matthias Clasen authored
      2007-06-04  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkmarshalers.list:
              * gtk/gtknotebook.[hc]: Add a create-window signal that allows
              to override the global create-window-hook on a per-notebook
              basis. The default handler falls back to the global hook.
              (#386935, Christian Hammond)
      
      
      svn path=/trunk/; revision=18024
      17df8751
  2. 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
  3. 02 Jan, 2007 1 commit
  4. 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
  5. 11 Jun, 2006 1 commit
  6. 02 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded · fad69ba0
      Alexander Larsson authored
      2006-06-02  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/Makefile.am:
      	Add gtkprintoperationpreview.[ch]
      	Set default preview command. Hardcoded for now.
      
      	* gtk/gtkmarshalers.list:
      	Add BOOLEAN:OBJECT,OBJECT,OBJECT
      
      	* gtk/gtkprintbackend.c:
      	Add preview command property.
      
      	* gtk/gtkprintcontext.[ch]:
      	Make less dependent on PrintOperation for output settings
      	Externally set cairo_t and dpi. Resettable.
      	Create fontmap without metrics hinting (so that print preview
      	text layout doesn't depend on zoom level).
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.[ch]:
      	Initial work on print preview API and default implementation
      	using an external preview app.
      
      	* gtk/gtkprintoperation-win32.c:
      	Some needed updates. Not done, needs more work.
      
      	* gtk/gtkprintoperationpreview.[ch]:
      	New interface used in print preview api.
      
      	* gtk/gtkprintunixdialog.c:
      	Add print preview dialog.
      
      	* tests/print-editor.c:
      	Test using an custom print preview widget.
      fad69ba0
  7. 22 May, 2006 1 commit
    • Alexander Larsson's avatar
      Make sure grab-notify is emitted on toplevels as well as child widgets. · d2cb6c6e
      Alexander Larsson authored
      2006-05-22  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkmain.c:
      	Make sure grab-notify is emitted on toplevels as well as
      	child widgets.
      
      	* gtk/Makefile.am:
      	* gtk/gtkwin32embedwidget.[ch]
      	Add new widget used for win32 port to embed gtk+
      	widgets in windows dialog.
      
      	* gtk/gtkmarshalers.list:
      	Add POINTER:VOID
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation.[ch]:
      	Generic support for custom widgets in print dialog.
      
      	* gtk/gtkprintoperation-win32.c:
      	Implement custom widget support for win32.
      
      	* tests/print-editor.c:
      	Allow setting of font using custom widgets in the print dialog.
      d2cb6c6e
  8. 18 May, 2006 1 commit
  9. 21 Apr, 2006 1 commit
    • Alexander Larsson's avatar
      Merge the gtk-printing branch. For more detailed ChangeLog entries, see · 27f746fb
      Alexander Larsson authored
      2006-04-21  Alexander Larsson  <alexl@redhat.com>
      
              Merge the gtk-printing branch.
      	For more detailed ChangeLog entries, see the branch.
      
      	* .cvsignore:
      	* Makefile.am:
      	* configure.in:
      	* docs/tools/widgets.c:
      	* gtk+-unix-print-2.0.pc.in:
      	* gtk/Makefile.am:
      	* gtk/gen-paper-names.c:
      	* gtk/gtk.h:
      	* gtk/gtk.symbols:
      	* gtk/gtkenums.h:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkmarshalers.list:
      	* gtk/gtkpagesetup.[ch]:
      	* gtk/gtkpagesetupunixdialog.[ch]:
      	* gtk/gtkpapersize.[ch]:
      	* gtk/gtkprint-win32.[ch]:
      	* gtk/gtkprintbackend.[ch]:
      	* gtk/gtkprintcontext.[ch]:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.[ch]:
      	* gtk/gtkprinteroption.[ch]:
      	* gtk/gtkprinteroptionset.[ch]:
      	* gtk/gtkprinteroptionwidget.[ch]:
      	* gtk/gtkprintjob.[ch]:
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation-win32.c:
      	* gtk/gtkprintoperation.[ch]:
      	* gtk/gtkprintsettings.[ch]:
      	* gtk/gtkprintunixdialog.[ch]:
      	* gtk/paper_names.c:
      	* gtk/paper_names_offsets.c:
      	Platform independent printing API and implementations
      	for unix and windows.
      
      	* gtk/gtkstock.h:
      	* gtk/stock-icons/24/gtk-orientation-landscape.png:
      	* gtk/stock-icons/24/gtk-orientation-portrait.png:
      	* gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
      	Add stock icons for page orientation.
      
      	* modules/Makefile.am:
      	* modules/printbackends/Makefile.am:
      	* modules/printbackends/cups/Makefile.am:
      	* modules/printbackends/cups/gtkcupsutils.[ch]:
      	* modules/printbackends/cups/gtkprintbackendcups.[ch]:
      	* modules/printbackends/cups/gtkprintercups.[ch]:
      
      	Cups printing backend for unix.
      
      	* modules/printbackends/lpr/Makefile.am:
      	* modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
      	lpr printing backend for unix.
      
      	* modules/printbackends/pdf/Makefile.am:
      	* modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
      	print-to-pdf printing backend for unix.
      
      	* tests/.cvsignore:
      	* tests/Makefile.am:
      	* tests/print-editor.c:
      	Test application for printing.
      
      	* gdk/gdk.symbols:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkwin32.h:
      	Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
      	mainloop while displaying a win32 common dialog.
      
      	* gdk/directfb/Makefile.am:
      	Whitespace cleanup.
      27f746fb
  10. 12 Dec, 2005 1 commit
  11. 10 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Improve navigation to parent folders. (#318444, Andrei Yurkevich) · 938d34c0
      Matthias Clasen authored
      2005-11-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
      
      	* gtk/gtkpathbar.[hc]: Add a child_path argument to
      	the path_clicked signal.
      	* gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
      	child_path, if it is provided.
      	* gtk/marshalers.list (path_bar_clicked): Add the necessary
      	glue.
      938d34c0
  12. 11 Sep, 2005 1 commit
  13. 15 Jul, 2005 1 commit
    • Federico Mena Quintero's avatar
      Add overwrite confirmation for SAVE mode. Fixes bug #152850: · fb7d6ac4
      Federico Mena Quintero authored
      2005-07-14  Federico Mena Quintero  <federico@ximian.com>
      
      	Add overwrite confirmation for SAVE mode.  Fixes bug #152850:
      
      	* gtk/gtkfilechooser.h: Add prototypes for
      	gtk_file_chooser_set/get_do_overwrite_confirmation().
      	(GtkFileChooserConfirmation): New enum for the result of the
      	"confirm-overwrite" signal.
      
      	* gtk/gtkmarshalers.list: Add ENUM:VOID.
      
      	* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
      	"do-overwrite-confirmation" boolean property.
      	(gtk_file_chooser_set_do_overwrite_confirmation): Implement.
      	(gtk_file_chooser_get_do_overwrite_confirmation): Implement.
      	(confirm_overwrite_accumulator): New accumulator for the signal.
      
      	* gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
      	GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
      
      	* gtk/gtkfilechooserutils.c
      	(_gtk_file_chooser_install_properties): Override the
      	do-overwrite-confirmation property.
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
      	confirm_overwrite signal to the vtable.
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_set_property): Handle the new property.
      	(gtk_file_chooser_default_get_property): Likewise.
      	(get_selected_file_info_from_file_list): New helper function; code
      	taken from list_selection_changed().
      	(list_selection_changed): Use get_selected_file_info_from_file_list().
      	(should_respond_after_confirm_overwrite): New function.
      	(gtk_file_chooser_default_should_respond): Confirm when necessary.
      fb7d6ac4
  14. 27 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Provide information about how an adjustment change in a range widget · 01bc5631
      Matthias Clasen authored
      Thu Aug 26 22:44:12 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Provide information about how an adjustment change in a range
      	widget happened. Add a "slider-moved" signal which reports how
      	a user is interacting with the range, whether they are clicking
      	on a stepper or the trough, or dragging the slider.  (#133263,
      	Thomas Fitzsimmons)
      
      	* gtk/gtkmarshalers.list: Add signal type BOOLEAN:ENUM,DOUBLE.
      	* gtk/gtkrange.c (gtk_range_class_init): Add "change-value"
      	signal.
      	(gtk_range_internal_set_value): Rename to
      	gtk_range_real_change_value.  Add GtkScrollType parameter.  Emit
      	the change-value signal when the range's value changes.
      	(update_slider_position, gtk_range_scroll_event, step_back,
      	step_forward, page_back, page_forward, scroll_begin,
      	scroll_end): Change gtk_range_internal_set_value to
      	gtk_range_real_change_value.
      	* gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
      	function.
      01bc5631
  15. 26 Jul, 2004 1 commit
  16. 20 Jul, 2004 1 commit
  17. 16 Jul, 2004 1 commit
  18. 02 Apr, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #136077. · 8e661364
      Federico Mena Quintero authored
      2004-04-01  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #136077.
      
      	* gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
      	"child_is_hidden" boolean argument to the "path-clicked" signal.
      
      	* gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
      	field.
      	(make_directory_button): Take a file_is_hidden argument; put it in
      	the ButtonData.
      	(_gtk_path_bar_set_path): See whether each path component path is
      	a hidden file.
      	(gtk_path_bar_class_init): Add the file_is_hidden argument to the
      	"path-clicked" signal.
      	(button_clicked_cb): See if the downwards button represents a
      	hidden file for the file_is_hidden argument in the signal
      	emission.
      
      	* gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_select_path): If we fail to switch
      	folders, don't try to select the path in the file system model.
      	Also, return the result from _gtk_file_system_model_path_do().
      	(gtk_file_chooser_default_select_path): Turn on show_hidden in the
      	file system model if we are asked to select a hidden file.
      	(path_bar_clicked): Show hidden files based on whether the
      	immediate downwards folder in the path bar is a hidden file
      	itself.
      	(struct _GtkFileChooserDefault): Added fields
      	browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
      	(create_file_list): Set an object data key of
      	"GtkFileChooserDefault" on the tree view so that we can find the
      	impl from the popup menu callbacks.  Also, hook up to the
      	"button-press-event" and "popup-menu" signals in the file list to
      	bring up a popup menu.
      	(list_popup_menu_cb): New callback.
      	(list_button_press_event_cb): New callback.
      
      	Fix #138763:
      
      	* gtk/gtkfilesystemmodel.c
      	(_gtk_file_system_model_new): Oops, connect_object to
      	"finished-loading".
      8e661364
  19. 06 Feb, 2004 1 commit
  20. 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().
      448b576d
  21. 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.
      edef7d00
  22. 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
      	  toolbar.
      
      	* 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.
      f91ae4ed
  23. 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.
      fa336d28
  24. 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_set_property),
              (gtk_cell_renderer_toggle_get_property),
              (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
              gtk_tree_view_column_cell_get_position()
      
      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_unselect_all),
              (gtk_tree_view_real_select_cursor_row),
              (gtk_tree_view_real_toggle_cursor_row),
              (gtk_tree_view_real_expand_collapse_cursor_row),
              (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.
      a09f497c
  25. 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.)
      11aed263
  26. 27 Mar, 2002 1 commit
  27. 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.
      59fc8ff8
  28. 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
      f0ed36b3
  29. 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
      	#53934
      	* gtk/gtkmarshalers.list: add NONE:INT,BOOL
      9e404f2a
  30. 04 Dec, 2001 1 commit
  31. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  32. 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
      	registry.
      
      	* 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
      	functions.
      	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
      	gtk_accel_label_set_accel_object.
      	introduced gtk_accel_label_set_accel_closure, and for convenience,
      	gtk_accel_label_set_accel_widget.
      
      	* 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_signal_newv().
      
      	* gtk/gtkwidget.[hc]: accelerator API revamp.
      	removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
      	gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
      	gtk_widget_(un)lock_accelerators.
      	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
      	::accels_changed.
      
      Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
      	GString->string conversions.
      d07573c0
  33. 04 Nov, 2001 1 commit
  34. 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
      	signals.
      a1fe2ac1
  35. 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.
      92841cb9
    • 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_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
      	GTK_TYPE_POINTER.
      	(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.
      80e87c94
  36. 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
      	::row_changed.
      	* 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!
      fc8304b1
  37. 25 Jul, 2001 1 commit
    • James Henstridge's avatar
      commiting patch after comments from Alex on IRC · e7093923
      James Henstridge authored
      2001-07-15  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
      	(gtk_window_remove_accel_group): same here.
      	(gtk_window_key_press_event): same here.
      
      	* gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
      	(gtk_widget_remove_accelerator): same here.
      	(gtk_widget_remove_accelerators): same here.
      
      	* gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
      	instead of GtkObject.
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
      	now takes GObjects.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
      	pass a GObject to gtk_accel_group_entries_from_object.
      	(gtk_item_factory_create_item): s/accel_widget/accel_object/
      
      	* gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
      
      	* gtk/gtkaccellabel.c: convert to handle GObject accel objects.
      
      	* gtk/gtkaccellabel.h: fix header to reflect that arbitrary
      	GObjects can have accelerators set now.  Add compatibility
      	defines.
      
      	* gtk/gtkmarshal.list: add missing marshallers.
      
      	* gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
      	accelerators on plain GObjects.  gtk_accel_group_object_destroy
      	has been converted into a weak reference, and
      	gtk_accel_group_delete_entries is now a destroy notify for that
      	piece of data.
      e7093923
  38. 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
      	conditions.
      
      	* 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
      	support
      
      	* 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
      	support
      
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	screwup
      
      	* 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
      	image.
      
      	* 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
      	anyhow.
      0bee26c7
  39. 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
      74e7da21