1. 11 May, 2005 1 commit
    • Michael Natterer's avatar
      Some dock refactoring which separates the docking logic from active image · 1f1305c3
      Michael Natterer authored
      2005-05-11  Michael Natterer  <mitch@gimp.org>
      
      	Some dock refactoring which separates the docking logic from
      	active image and UI manager stuff:
      
      	* app/widgets/gimpmenudock.[ch]: new widget renamed from
      	GimpImageDock, zero changes except the name change.
      
      	* app/widgets/gimpimagedock.[ch]: new widget derived from
      	GimpDock. Keeps the UI manager.
      
      	* app/widgets/gimpdock.[ch]: removed the UI manager. GimpDock only
      	contains the basic docking logic again.
      
      	* app/widgets/gimpmenudock.[ch]
      	* app/widgets/gimptoolbox.[ch]: derive them from GimpImageDock.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/actions/dialogs-commands.c
      	* app/actions/dock-actions.c
      	* app/actions/dock-commands.c
      	* app/actions/dockable-commands.c
      	* app/dialogs/dialogs-constructors.c: changed accordingly.
      1f1305c3
  2. 10 May, 2005 2 commits
    • Michael Natterer's avatar
      added API to set an event snooper which, if set, receives any controller · a98adfd8
      Michael Natterer authored
      2005-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollerinfo.[ch]: added API to set an event
      	snooper which, if set, receives any controller event first, even
      	if event dispatching is disabled for the controller.
      
      	* app/widgets/gimpcontrollereditor.[ch]: use the new API to
      	implement a "Grab Event" button, which takes the next event from
      	the controller and selects it in the event mapping tree view.
      a98adfd8
    • Michael Natterer's avatar
      some more stuff: up/down buttons, remember the dialogs' size and · 66ce4f85
      Michael Natterer authored
      2005-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollerlist.[ch]: some more stuff: up/down
      	buttons, remember the dialogs' size and positions, misc stuff.
      
      	* app/widgets/gimpcontrollereditor.c
      	(gimp_controller_editor_edit_clicked): use a GimpViewableDialog
      	now that GimpControllerInfo is a GimpViewable.
      
      	* app/dialogs/dialogs.c: added a foreign entry for the controller
      	editor dialog. Allow the controller editors and its event mapping
      	dialogs to exist multiple times.
      
      	* app/dialogs/preferences-dialog.c (prefs_notebook_append_page):
      	create the pages' event boxes with input-only windows.
      66ce4f85
  3. 09 May, 2005 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new widget which · 92ad7c1d
      Michael Natterer authored
      2005-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontrollerlist.[ch]: new widget which allows
      	adding/removing controllers using two lists of available/active
      	controllers. Work in progress...
      
      	* app/widgets/gimpcontrollerinfo.[ch]: derive it from GimpVieable
      	so it can have an icon (unfinished). Added convenience constructor
      	gimp_controller_info_new().
      
      	* app/dialogs/preferences-dialog.c: use a GimpControllerList
      	instead of a notebook of GimpControllerEditors.
      92ad7c1d
  4. 06 May, 2005 2 commits
    • Sven Neumann's avatar
      app/actions/layers-actions.c app/core/gimpimage.c · 2a08c79b
      Sven Neumann authored
      2005-05-06  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/layers-actions.c
      	* app/core/gimpimage.c (gimp_image_position_layer)
      	* app/widgets/gimplayertreeview.c (gimp_layer_tree_view_drop_possible):
      	drop the limitation that layers not at the bottom of the stack
      	have to have an alpha channel. Allow the user to move the
      	background layer up in the stack or reposition it using DND.
      
      	* tips/gimp-tips.xml.in: changed the relevant tip and some more.
      2a08c79b
    • Michael Natterer's avatar
      added enum for the "load_color" actions. · b4f94205
      Michael Natterer authored
      2005-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-commands.h: added enum for the
      	"load_color" actions.
      
      	* app/actions/gradient-editor-actions.c
      	* app/actions/gradient-editor-commands.c: use the new enum instead
      	of magic values, cleanup.
      
      	* app/actions/palette-editor-commands.c: cleanup.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpdataeditor.c: cleanup.
      
      	* app/widgets/gimpgradienteditor.c: added GtkObject::destroy() and
      	GtkWidget::unmap() implementations which destroy the color dialog.
      	Destroy color dialogs by cancelling them via gtk_dialog_response(),
      	so temporarily changed colors are restored correctly. Refactored
      	my last commit below a bit. Various cleanups.
      
      	* app/widgets/gimppaletteeditor.[ch]: no need to remember the
      	buttons in the GimpPaletteEditor struct.
      b4f94205
  5. 05 May, 2005 1 commit
    • Michael Natterer's avatar
      changed handle colors to be always black and white. Fixes bug #303118. · c15742da
      Michael Natterer authored
      2005-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpgradienteditor.c (control_draw)
      	(control_draw_normal_handle)
      	(control_draw_middle_handle): changed handle colors to be always
      	black and white. Fixes bug #303118. Also changed the handle bar's
      	background and the handles' outlines to theme colors which should
      	make the handles distinguishable from the background for all
      	themes.
      
      	Various unrelated cleanups.
      c15742da
  6. 04 May, 2005 1 commit
    • Sven Neumann's avatar
      emit "color-clicked" on first click. · 33a06ab5
      Sven Neumann authored
      2005-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfgbgeditor.c (gimp_fg_bg_editor_button_press):
      	emit "color-clicked" on first click.
      
      	* app/widgets/gimptoolbox.c: changed tooltip accordingly.
      33a06ab5
  7. 03 May, 2005 1 commit
    • Michael Natterer's avatar
      include the parent class, not gimpeditor.h · 3184148c
      Michael Natterer authored
      2005-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcolordisplayeditor.h: include the parent class,
      	not gimpeditor.h
      
      	* app/widgets/gimpcolordisplayeditor.c: include gimpeditor.h here
      3184148c
  8. 29 Apr, 2005 1 commit
  9. 27 Apr, 2005 2 commits
    • Sven Neumann's avatar
      free all memory allocated for GimpClipboard. · 55be97a0
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpclipboard.c (gimp_clipboard_free): free all
      	memory allocated for GimpClipboard.
      
      	* libgimpwidgets/gimppatheditor.c (gimp_path_editor_set_path):
      	always free old_path.
      55be97a0
    • Sven Neumann's avatar
      don't call va_arg() too often. · 5978e395
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpunitstore.c: don't call va_arg() too often.
      
      	* libgimpconfig/gimpcolorconfig.c (gimp_color_config_finalize):
      	free the string allocated for the display module.
      5978e395
  10. 24 Apr, 2005 1 commit
  11. 21 Apr, 2005 1 commit
  12. 18 Apr, 2005 1 commit
  13. 16 Apr, 2005 3 commits
    • Sven Neumann's avatar
      app/widgets/gimpaction.h app/widgets/gimpactiongroup.h · 1967e63d
      Sven Neumann authored
      2005-04-17  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpaction.h
      	* app/widgets/gimpactiongroup.h
      	* app/widgets/gimpcellrendereraccel.h
      	* app/widgets/gimpenumaction.h
      	* app/widgets/gimppluginaction.h
      	* app/widgets/gimpstringaction.h
      	* app/widgets/gimpuimanager.h: declare get_type() function as
      	G_GNUC_CONST.
      1967e63d
    • Michael Natterer's avatar
      no need to get base_config twice in the same function. · 4e92a6cf
      Michael Natterer authored
      2005-04-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.c (gimp_context_real_set_brush)
      	(gimp_context_real_set_pattern): no need to get base_config twice
      	in the same function.
      
      	* app/widgets/gimpblobeditor.h: include the parent class.
      
      	* app/widgets/gimpdataeditor.c (gimp_data_editor_init): set the
      	name entry insensitive.
      4e92a6cf
    • Michael Natterer's avatar
      implement GimpDocked::get_title() and add "(read only)" to the dialog's · b8e8822c
      Michael Natterer authored
      2005-04-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdataeditor.[ch]: implement
      	GimpDocked::get_title() and add "(read only)" to the dialog's
      	title if the data is not editable. Fixes bug #164003.
      
      	(gimp_data_editor_real_set_data): call gimp_docked_title_changed()
      	when the editable state changes.
      
      	(struct GimpDataEditorClass): added "const gchar *title" member.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppaletteeditor.c (class_init): set titles.
      b8e8822c
  14. 14 Apr, 2005 1 commit
  15. 12 Apr, 2005 2 commits
    • Michael Natterer's avatar
      don't use the image container as display container. · bf1b9651
      Michael Natterer authored
      2005-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
      	don't use the image container as display container.
      bf1b9651
    • Sven Neumann's avatar
      n2005-04-12 Sven Neumann <sven@gimp.org> · 0c91d7d6
      Sven Neumann authored
      	* app/core/gimpcontainer.[ch]: added gimp_container_is_empty().
      
      	* app/core/gimpcontext.c
      	* app/core/gimpimage.c
      	* app/dialogs/palette-import-dialog.c
      	* app/text/gimptextlayer.c
      	* app/widgets/gimpimagedock.c: use the new function.
      0c91d7d6
  16. 11 Apr, 2005 1 commit
  17. 09 Apr, 2005 4 commits
    • Michael Natterer's avatar
      app/file/file-utils.c app/tools/gimpfliptool.c · 09ef4b1d
      Michael Natterer authored
      2005-04-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.c
      	* app/tools/gimpfliptool.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimppaletteselect.c: removed unneeded base/ includes.
      09ef4b1d
    • Michael Natterer's avatar
      added gimp_buffer_new_from_pixbuf(). · 9d439fe0
      Michael Natterer authored
      2005-04-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbuffer.[ch]: added gimp_buffer_new_from_pixbuf().
      
      	* app/widgets/gimpclipboard.c: removed
      	tile_manager_new_from_pixbuf() and base/ dependency.
      9d439fe0
    • Manish Singh's avatar
      #include <string.h> for strcmp, and fix gdk_atom_intern usage. · b31216d0
      Manish Singh authored
      005-04-09  Manish Singh  <yosh@gimp.org>
      
              * app/widgets/gimppixbuf.c: #include <string.h> for strcmp, and
              fix gdk_atom_intern usage.
      b31216d0
    • Michael Natterer's avatar
      Implement dragging and dropping in any GdkPixbuf supported format. Fixes · 76096459
      Michael Natterer authored
      2005-04-09  Michael Natterer  <mitch@gimp.org>
      
      	Implement dragging and dropping in any GdkPixbuf supported
      	format. Fixes bug #172794 and bug #172795.
      
      	* app/core/gimplayer.[ch] (gimp_layer_new_from_region): new
      	function which contains all stuff that was in
      	gimp_layer_new_from_tiles().
      
      	(gimp_layer_new_from_tiles): use above function.
      	(gimp_layer_new_from_pixbuf): new function.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimppixbuf.[ch]: new files containing GdkPixbuf
      	utility functions for clipboard and DnD.
      
      	* app/widgets/gimpselectiondata.[ch]: removed
      	gimp_selection_data_set,get_pixbuf(), GTK+ provides the same API.
      	Also removed GdkAtom parameters all over the place because it's
      	always the same as selection_data->target.
      
      	* app/widgets/gimpclipboard.c: use the new pixbuf utility
      	functions and gtk_selection_data_set,get_pixbuf().
      
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpdnd.[ch]: removed never-implemented
      	GIMP_DND_TYPE_PNG and added a generic GIMP_DND_TYPE_PIXBUF
      	instead. Added API to drag and drop GdkPixbufs which transparently
      	converts from/to and GdkPixbuf-supported image format. Removed
      	passing around of GdkAtoms, since they were always the same
      	as selection_data->target.
      
      	* app/widgets/gimpdnd-xds.[ch]: follow GdkAtom parameter removal.
      
      	* app/widgets/gimpcontainertreeview.[ch]: added virtual function
      	GimpContainerTreeView::drop_pixbuf().
      
      	* app/widgets/gimpcontainertreeview-dnd.c: dispatch drop_pixbuf().
      
      	* app/widgets/gimplayertreeview.c: implement drop_pixbuf().
      
      	* app/widgets/gimpdrawabletreeview.c: allow to drag all drawables
      	as pixbufs.
      
      	* app/display/gimpdisplayshell-dnd.c: allow dropping of pixbufs.
      76096459
  18. 07 Apr, 2005 3 commits
  19. 06 Apr, 2005 1 commit
    • Sven Neumann's avatar
      plugged a small memleak. · d0c80e76
      Sven Neumann authored
      2005-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpmessagebox.c: plugged a small memleak.
      
      	* libgimpwidgets/gimpcontroller.c: added a finalizer and free the
      	allocated strings.
      d0c80e76
  20. 05 Apr, 2005 1 commit
    • Sven Neumann's avatar
      s/Colorspace/Color space/ · 83acacc2
      Sven Neumann authored
      2005-04-05  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptemplateeditor.c: s/Colorspace/Color space/
      83acacc2
  21. 04 Apr, 2005 2 commits
    • Michael Natterer's avatar
      More unfinished replacement for the info window: · dba31b14
      Michael Natterer authored
      2005-04-05  Michael Natterer  <mitch@gimp.org>
      
      	More unfinished replacement for the info window:
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpimagepropview.[ch]: new widget showing an image's
      	size, resolution, mode, memsize etc.
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/image-properties-dialog.[ch]: a dialog keeping the
      	widget.
      
      	* app/widgets/gimphelp-ids.h: a help ID for the dialog.
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* menus/image-menu.xml.in: action and menu entry for the dialog.
      dba31b14
    • Tor Lillqvist's avatar
      On Win32, move the "bmp" format to the front. Means less conversion in · 61ca231c
      Tor Lillqvist authored
      2005-04-04  Tor Lillqvist  <tml@novell.com>
      
      	* app/widgets/gimpclipboard.c (gimp_clipboard_format_compare): On
      	Win32, move the "bmp" format to the front. Means less conversion
      	in most cases, as other apps on Win32 typically provide/want the
      	BMP format on the Clipboard. (Actually CF_DIB, but that's the
      	same, just without the BMP file header.) See also bug #168173.
      61ca231c
  22. 03 Apr, 2005 3 commits
    • Michael Natterer's avatar
      fixed spacings and update them in GtkWidget::style_set(). Removed lots of · ff1e1ba2
      Michael Natterer authored
      2005-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcursorview.[ch]: fixed spacings and update them
      	in GtkWidget::style_set(). Removed lots of cruft from the widget
      	this files were copied from, including the GimpContext param
      	to gimp_cursor_view_new(). Remember the state of the two color
      	frames as aux-info in sessionrc.
      
      	* app/dialogs/dialogs-constructors.c: changed accordingly.
      ff1e1ba2
    • Michael Natterer's avatar
      switch from a table to a vbox containing hboxes, so the widget's width is · 327f1a00
      Michael Natterer authored
      2005-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcolorframe.c (gimp_color_frame_init): switch
      	from a table to a vbox containing hboxes, so the widget's width is
      	not determined by the longest label *plus* the longest value.
      327f1a00
    • Michael Natterer's avatar
      added new signals "sample-point-added" and "sample-point-removed" and · 0231374c
      Michael Natterer authored
      2005-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added new signals "sample-point-added"
      	and "sample-point-removed" and public functions to emit them.
      
      	* app/core/gimpimage-sample-points.c (gimp_image_add_sample_point)
      	(gimp_image_remove_sample_point): emit them accordingly.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_image_sample_point):
      	ditto.
      
      	(undo_pop_image_guide)
      	(undo_pop_image_sample_point): added comments why we add/remove
      	stuff manually instead of using the GimpImage APIs.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcursorview.[ch]
      	* app/widgets/gimpsamplepointeditor.[ch]: new widgets.
      	GimpCursorView is a replacement for the info window's "Cursor"
      	page, GimpSamplePointEditor is a view on an image's sample points.
      	The sample point editor does nothing yet except keeping a 2x2 grid
      	of GimpColorFrames. Addresses bug #137776.
      
      	* app/dialogs/dialogs.c
      	* app/dialogs/dialogs-constructors.[ch]: register the new widgets
      	as dockable dialogs.
      
      	* app/actions/dialogs-actions.c (dialogs_dockable_actions)
      	* menus/dialogs-menuitems.xml: added actions and menu items for
      	the new dialogs.
      
      	* app/display/gimpdisplayshell-cursor.c
      	(gimp_display_shell_update_cursor)
      	(gimp_display_shell_clear_cursor): update the new cursor view.
      
      	* app/widgets/gimphelp-ids.h: help IDs for the new dialogs.
      
      	* app/widgets/widgets-enums.[ch] (enum GimpColorFrameMode):
      	changed description "Pixel values" to "Pixel" because the former
      	was too long.
      0231374c
  23. 31 Mar, 2005 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/gimpfgbgview.[ch] added new widget · 3ba107f1
      Sven Neumann authored
      2005-03-31  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpfgbgview.[ch]
      	* app/widgets/widgets-types.h: added new widget GimpFgBgView;
      	somewhat similar to GimpFgBgEditor but a lot simpler.
      
      	* app/widgets/gimpcoloreditor.c: use GimpFgBgView as preview widget.
      	Closes bug #168592.
      
      	* app/widgets/gimpfgbgeditor.c: gracefully handle a very small
      	size allocation.
      3ba107f1
  24. 29 Mar, 2005 1 commit
  25. 26 Mar, 2005 2 commits