1. 30 Jun, 2004 3 commits
    • Michael Natterer's avatar
      app/widgets/gimpdnd.[ch] app/widgets/gimpselectiondata.[ch] changed · cc6aa186
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpselectiondata.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]: changed "files" and "uris"
      	to "uri_list" in all function names, parameters and typedefs.
      
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/display/gimpdisplayshell.c: changed accordingly.
      cc6aa186
    • Michael Natterer's avatar
      Fixed a 1.2 -> 2.0 regression that was forgotten: · 40229803
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	Fixed a 1.2 -> 2.0 regression that was forgotten:
      
      	* app/widgets/widgets-enums.[ch]: added enum GimpColorPickState
      	which can be one of { NEW, UPDATE }.
      
      	* app/widgets/gimppaletteeditor.[ch]: changed #if 0'ed function
      	gimp_palette_editor_update_color() to
      	gimp_palette_editor_pick_color() and restored the functionality of
      	creating/updating colors via this API
      
      	Changed button_press handler to only edit the color on double
      	click if it's really a double click on the same color.
      	Fixes bug #141381.
      
      	* app/tools/gimpcolorpickeroptions.[ch]: added boolean property
      	"add-to-palette" and a GUI for it.
      
      	* app/core/gimpmarshal.list
      	* app/tools/gimpcolortool.[ch]: added a GimpColorPickState
      	parameter to the "color_picked" signal. Pass NEW on button_press
      	and UPDATE on motion.
      
      	* app/tools/gimpcurvestool.c (gimp_curves_tool_color_picked)
      	* app/tools/gimplevelstool.c (gimp_levels_tool_color_picked)
      	* app/tools/gimppainttool.c (gimp_paint_tool_color_picked):
      	changed accordingly
      
      	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked):
      	If "add-to-palette" is TRUE, get the palette editor and call
      	gimp_palette_editor_pick_color().
      40229803
    • Sven Neumann's avatar
      renamed the SVG related functions so that they deal with an anonymous data · 114f747f
      Sven Neumann authored
      2004-06-30  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpselectiondata.[ch]: renamed the SVG related
      	functions so that they deal with an anonymous data stream that
      	could as well be a PNG image.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpcontainertreeview-dnd.c: changed accordingly.
      
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/vectors/gimpvectors-import.[ch]
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpvectorstreeview.c: use gsize for the length of
      	the buffer.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/widgets-enums.[ch]: added GIMP_DND_TYPE_PNG which isn't
      	used yet.
      114f747f
  2. 29 Jun, 2004 5 commits
    • Michael Natterer's avatar
      changed return value from gchar* to const gchar*. Renamed parameters to be · 425fd699
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	* widgets/gimpselectiondata.[ch] (gimp_selection_data_get_svg):
      	changed return value from gchar* to const gchar*. Renamed
      	parameters to be consistent with other SVG functions.
      
      	* widgets/gimpcontainertreeview-dnd.c
      	* widgets/gimpdnd.c: changed accordingly.
      425fd699
    • Michael Natterer's avatar
      do like GtkAccelLabel does and turn underscores in accels into spaces so · 3cec6416
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimptoolbox.c (gimp_toolbox_button_accel_changed):
      	do like GtkAccelLabel does and turn underscores in accels into
      	spaces so e.g. "Page_Up" becomes "Page Up".
      3cec6416
    • Michael Natterer's avatar
      reordered drop destinations so vectors are preferred over SVG. · 4685112c
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c: reordered drop destinations
      	so vectors are preferred over SVG.
      
      	* app/vectors/gimpvectors-import.[ch]: added "gint position"
      	parameter to all import functions so the imported vectors can be
      	added at any position in the vectors stack.
      
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell-dnd.c
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly (pass -1 as
      	position).
      
      	* app/pdb/paths_cmds.c: regenerated.
      
      	* app/widgets/gimpvectorstreeview.c: implemented SVG DND from and
      	to the paths dialog.
      4685112c
    • Michael Natterer's avatar
      don't free the SVG data after dropping, it's owned by GtkSelectionData. · 03b4c71d
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainertreeview-dnd.c: don't free the SVG data
      	after dropping, it's owned by GtkSelectionData.
      03b4c71d
    • Michael Natterer's avatar
      use gtk_target_list_add() instead of gtk_target_list_add_table() because · 3f5e10c1
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c: use gtk_target_list_add() instead of
      	gtk_target_list_add_table() because the latter prepends the
      	targets to the internal list which screws the order (== priority)
      	of DND targets.
      
      	* app/widgets/gimpselectiondata.c: added some more checks for
      	failed drops (selection_data->length < 0).
      3f5e10c1
  3. 28 Jun, 2004 4 commits
    • Michael Natterer's avatar
      added new function gimp_get_mod_string() which takes a GdkModifierType and · 6cd57372
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added new function
      	gimp_get_mod_string() which takes a GdkModifierType and returns
      	correctly formated strings for all shift,control,alt combinations.
      
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcolorpickeroptions.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpmoveoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/tools/gimpvectoroptions.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpthumbbox.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpvectorstreeview.c: use the new function instead
      	of gimp_get_mod_name_shift(),control(),alt(),separator(). This
      	kindof addresses the issue of configurable modifier keys but is
      	actually indended to ease translation of format strings ("%s" is
      	easier to get right than "%s%s%s").
      6cd57372
    • Michael Natterer's avatar
      Allow all sorts of things to be dropped on or in between the items of a · 6a5e68c9
      Michael Natterer authored
      2004-06-28  Michael Natterer  <mitch@gimp.org>
      
      	Allow all sorts of things to be dropped on or in between the
      	items of a GimpContainerTreeView:
      
      	* app/widgets/gimpcontainertreeview.[ch]: added more parameters to
      	GimpContainerTreeView::drop_possible() to specify where ecactly
      	the drop should take place (between or into items) and to support
      	dropping all sorts of things.
      
      	Renamed ::drop() to ::drop_viewable() and added ::drop_color(),
      	::drop_files() and ::drop_svg(), which cover all possible drop
      	types.
      
      	* app/widgets/gimpcontainertreeview-dnd.[ch]: changed accordingly.
      	Dispatch all kinds of drops to the resp. virtual functions.
      
      	* app/widgets/gimpitemtreeview.c: changed accordingly.
      
      	* app/widgets/gimplayertreeview.c: allow to drop URIs, colors
      	and patterns to the layers dialog. Fixes bugs #119506 and #139246.
      6a5e68c9
    • Michael Natterer's avatar
      app/widgets/Makefile.am new files containing the code which · 667de3c9
      Michael Natterer authored
      2004-06-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpselectiondata.[ch]: new files containing the
      	code which encodes/decodes all sorts of stuff to/from its
      	GtkSelectionData representation. Used to live in gimpdnd.c
      
      	* app/widgets/gimpdnd.c: use the new functions (unclutters the
      	file quite a bit), converted tabs to spaces.
      667de3c9
    • Michael Natterer's avatar
      #include "libgimpwidgets/gimpwidgets.h" · d45a6b23
      Michael Natterer authored
      2004-06-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainergridview.c:
      	#include "libgimpwidgets/gimpwidgets.h"
      d45a6b23
  4. 25 Jun, 2004 1 commit
    • Michael Natterer's avatar
      added properties for all brush parameters. · 23c068bc
      Michael Natterer authored
      2004-06-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbrushgenerated.c: added properties for all brush
      	parameters.
      
      	* app/widgets/gimpbrusheditor.c: listen to property changes of the
      	edited brush and update the scales accordingly.
      23c068bc
  5. 24 Jun, 2004 4 commits
    • Michael Natterer's avatar
      added a boolean property "debug-events" and honor it when printing · 488ac69d
      Michael Natterer authored
      2004-06-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollerinfo.[ch]: added a boolean property
      	"debug-events" and honor it when printing debugging output.
      	Should add an event console window so the user doesn't need to
      	have a terminal to inspect input module output.
      
      	* app/gui/prefereces-dialog.c: HIGified some forgotten labels.
      	Renamed the "Pointer Movement Feedback" frame to "Mouse Cursors".
      	Replaced some forgotten "Dir" with "Folder".
      	Made more GimpControllerInfo and GimpController properties
      	editable and cleaned up the controller page.
      488ac69d
    • Michael Natterer's avatar
      added gimp_prop_label_new(). · f0fcfaab
      Michael Natterer authored
      2004-06-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppropwidgets.[ch]: added gimp_prop_label_new().
      
      	* app/widgets/gimpgrideditor.c: HIGified capitalization.
      f0fcfaab
    • Michael Natterer's avatar
      renamed function gimp_controller_wheel_scrolled() to · 11dfbae2
      Michael Natterer authored
      2004-06-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollerwheel.[ch]: renamed function
      	gimp_controller_wheel_scrolled() to
      	gimp_controller_wheel_scroll().
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_tool_events): changed accordingly.
      11dfbae2
    • Michael Natterer's avatar
      app/tools/gimptool.[ch] added boolean return value to · 02b91f66
      Michael Natterer authored
      2004-06-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]
      	* app/tools/tool_manager.[ch]: added boolean return value to
      	GimpTool::key_press() which indicates if the event was handled.
      
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.[ch]
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: return TRUE if the key event was handled.
      
      	* app/tools/gimppainttool.c: removed key_press() implementation.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontrollerkeyboard.[ch]: new controller class
      	which takes GdkEventKey and emits controller events for all
      	combinations of modifiers and cursor keys.
      
      	* app/widgets/gimpcontrollers.[ch]: added new function
      	gimp_controllers_get_keyboard().
      
      	* app/display/gimpdisplayshell-callbacks.c: if a key event was not
      	handled by the active tool, dispatch it to the keyboard controller.
      
      	* etc/controllerrc: add a keyboard controller which is configured
      	to do the same as the removed gimp_paint_tool_key_press().
      02b91f66
  6. 23 Jun, 2004 2 commits
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 63a4a72f
      William Skaggs authored
      	* app/gui/*.c:
      	* app/widgets/*.c:
      	* etc/templaterc: HIGify capitalization.  Should finish bug #123699
      	except for everything I missed or got wrong.
      63a4a72f
    • Michael Natterer's avatar
      app/widgets/gimpenumaction.[ch] app/widgets/gimppluginaction.[ch] added · 1ce16fef
      Michael Natterer authored
      2004-06-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpenumaction.[ch]
      	* app/widgets/gimppluginaction.[ch]
      	* app/widgets/gimpstringaction.[ch]: added parameters to the
      	gimp_*_action_selected() function so the "selected" signal can be
      	emitted with value != action->value. Changed GtkAction::activate()
      	implementations accordingly (pass action->value).
      
      	* app/widgets/gimpcontrollers.c: call gimp_enum_action_selected()
      	and pass the value of the GimpControllerEventValue instead of
      	temporarily replacing action->value and calling
      	gtk_action_activate().
      
      	* app/widgets/gimpcontrollerinfo.c: fixed debugging output.
      1ce16fef
  7. 22 Jun, 2004 2 commits
    • Michael Natterer's avatar
      app/actions/view-actions.c added actions & callbacks to configure the · 9fe8e849
      Michael Natterer authored
      2004-06-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]: added actions & callbacks to
      	configure the canvas padding color.
      
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: added the actions' help IDs and menu entries.
      
      	* app/display/display-enums.h: added /*< skip >*/'ed enum value
      	GIMP_CANVAS_PADDING_MODE_RESET.
      
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-callbacks.[ch]
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.[ch]: removed the canvas padding
      	button and its popup menu (fixes bug #142996). Instead, added a
      	toggle button which allows to zoom the image when the window is
      	resized (as known from sodipodi, except it doesn't work as nice
      	yet :-) improvements to the algorithm are welcome).
      	Cleaned up the GimpDisplayShell struct a bit and renamed some
      	of its members.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-zoom-follow-window-12.png: added new
      	icon for the new display toggle button.
      9fe8e849
    • Sven Neumann's avatar
      unset the filename if the image is unnamed. · a5fcdf28
      Sven Neumann authored
      2004-06-22  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): unset
      	the filename if the image is unnamed.
      
      	* configure.in
      	* app/sanity.c: depend on gtk+ >= 2.4.1.
      
      	* app/widgets/gimpthumbbox.[ch]: changed gimp_thumb_box_set_uris()
      	to gimp_thumb_box_take_uris() since the function takes ownership
      	of the list,
      
      	* app/widgets/gimpfiledialog.c: changed accordingly. Removed code
      	that worked around a problem in gtk+ < 2.4.1.
      a5fcdf28
  8. 21 Jun, 2004 2 commits
    • Michael Natterer's avatar
      removed value GIMP_CURSOR_FORMAT_PIXBUF_PREMULTIPLY because it's the job · 5e2c4257
      Michael Natterer authored
      2004-06-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-enums.[ch] (enum GimpCursorFormat): removed
      	value GIMP_CURSOR_FORMAT_PIXBUF_PREMULTIPLY because it's the job
      	of GDK to do that (it was GDK that was broken, not some of the X
      	servers).
      
      	* app/widgets/gimpcursor.c (gimp_cursor_new): premultiply the
      	cursor's pixels for GTK+ < 2.4.4.
      5e2c4257
    • Sven Neumann's avatar
      libgimpwidgets/gimpwidgets.[ch] added new utility function · 2670ce0b
      Sven Neumann authored
      2004-06-21  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.[ch]
      	* libgimpwidgets/gimpwidgets.def: added new utility function
      	gimp_label_set_attributes().
      
      	* app/display/gimpdisplayshell.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/widgets/gimpviewabledialog.c
      	* app/widgets/gimpwidgets-utils.c: use the new function.
      
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimphistogrameditor.c: display the name in italic.
      
      	* plug-ins/common/jpeg.c: display the file size in italic.
      2670ce0b
  9. 20 Jun, 2004 3 commits
    • Sven Neumann's avatar
      removed the label between the spinbuttons, it looks silly. Converted tabs · d97fb0a2
      Sven Neumann authored
      2004-06-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimphistogrambox.[ch]: removed the label between the
      	spinbuttons, it looks silly. Converted tabs to spaces, removed
      	trailing whitespace.
      
      	* app/widgets/gimphistogrameditor.c
      	* app/tools/gimpthresholdtool.c: changed accordingly.
      d97fb0a2
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · ca7aac79
      William Skaggs authored
      	* app/widgets/gimphistogrambox.[ch]:
      	* app/tools/gimpthresholdtool.c: Changed the threshold tool dialog
      	so that it uses a two-triangle-slider scale of the sort used in the
      	levels tool.  Almost all of the changes are actually in the
      	histogram-box widget code, which is only used by the threshold
      	tool.  Fixes bug #137521.
      ca7aac79
    • Philip Lafleur's avatar
      Changed "Zoom to Fit Window" command to "Fit Image in Window" and added · c7364a64
      Philip Lafleur authored
      2004-06-20  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/display/gimpdisplayshell-scale.[ch]:
      	* app/display/gimpnavigationview.[ch]:
      	* app/actions/view-actions.c:
      	* app/actions/view-commands.[ch]:
      	* app/widgets/gimphelp-ids.h:
      	* menus/image-menu.xml.in: Changed "Zoom to Fit Window" command
      	to "Fit Image in Window" and added another command, "Fit Image
      	to Window", that zooms according to the opposite dimension. Fixes
      	bug #144597.
      c7364a64
  10. 19 Jun, 2004 2 commits
    • Michael Natterer's avatar
      start supporting GIMP_CONTROLLER_EVENT_VALUE of type gdouble. Assume the · 3720ce2e
      Michael Natterer authored
      2004-06-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
      	start supporting GIMP_CONTROLLER_EVENT_VALUE of type gdouble.
      	Assume the double value is in a [0.0..1.0] range and temporarily
      	change the value of the called GimpEnumAction to a range of
      	[0..1000] when invoking it. All still very hackish...
      3720ce2e
    • Michael Natterer's avatar
      more debugging output. · 98e5e693
      Michael Natterer authored
      2004-06-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_event):
      	more debugging output.
      98e5e693
  11. 17 Jun, 2004 3 commits
    • Michael Natterer's avatar
      added gimp_boolean_handled_accum(). · 2a69c419
      Michael Natterer authored
      2004-06-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp-utils.[ch]: added gimp_boolean_handled_accum().
      
      	* app/core/gimp.c
      	* app/widgets/gimpcontrollerinfo.c: use it.
      2a69c419
    • Michael Natterer's avatar
      add newly created children to the container *after* deserializing them so · 75e6fc56
      Michael Natterer authored
      2004-06-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontainer.c (gimp_container_deserialize): add newly
      	created children to the container *after* deserializing them so
      	GimpContainer::add() callbacks get the already deserialized
      	object.
      
      	* app/widgets/gimpcontrollers.c: connect to "add" and "remove" of
      	the controller list and remember / clear the wheel controller when
      	it appears / disappears.
      75e6fc56
    • Michael Natterer's avatar
      removed "enabled" property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from · 5f4eabdb
      Michael Natterer authored
      2004-06-17  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.[ch]: removed "enabled"
      	property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from the "name"
      	property because it's the hardware-determined name of this
      	controller instance.
      
      	* app/widgets/gimpcontrollerwheel.c
      	* modules/controller_linux_input.c: set the name.
      
      	* libgimpwidgets/gimpwidgets.h: #include gimpcontroller.h.
      
      	* app/widgets/gimpcontrollerinfo.[ch]: added "enabled" here
      	instead.  Don't dispatch events if the controller is
      	disabled. Made everything work (not crash) with info->mapping
      	being NULL.
      
      	* etc/controllerrc: updated again with the changed format.
      
      	* app/widgets/gimpcontrollers.[ch]: added
      	gimp_controllers_get_list() which returns the container of
      	controllers.
      
      	* app/widgets/gimphelp-ids.h
      	* app/gui/preferences-dialog.c: added controller configuration
      	(can't change anything yet, just view the current settings).
      	Resurrected the "Input Devices" page and removed the "Session"
      	page by moving its widgets to other pages. Pack the various
      	"Save now"/"Clear now" buttons vertically, not horizontally.
      	Fixes bug #139069.
      
      	* themes/Default/images/preferences/Makefile.am
      	* themes/Default/images/preferences/controllers.png
      	* themes/Default/images/preferences/theme.png: new icons for new
      	prefs pages. Someone needs to make them nice...
      5f4eabdb
  12. 16 Jun, 2004 9 commits
    • Michael Natterer's avatar
      always return a non-NULL string (return "<invalid event id>" as fallback). · 004a9572
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.c (gimp_controller_get_event_name)
      	(gimp_controller_get_event_blurb): always return a non-NULL
      	string (return "<invalid event id>" as fallback).
      
      	* modules/controller_linux_input.c: reenabled button event
      	dispatching.
      
      	* app/widgets/gimpcontrollerinfo.c: fixed debugging output.
      004a9572
    • Michael Natterer's avatar
      added #define GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties · 3a7f7d54
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.[ch]: added #define
      	GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties serializable.
      
      	* modules/controller_linux_input.c: made "device-name"
      	serializable.
      
      	* app/config/gimpconfig-params.h: added macro
      	GIMP_CONFIG_INSTALL_PROP_POINTER() which needs to be handled
      	by custom (de)serialize_property() implementations.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: made object (de)serialization
      	work for object properties which are *not* GIMP_PARAM_AGGREGATE.
      	Write/parse the exact type of the object to create to enable this.
      
      	* app/core/gimpmarshal.list: new marshaller for GimpControllerInfo.
      
      	* app/widgets/gimpcontrollerinfo.[ch]: implement GimpConfigInterface
      	and add "controller" and "mapping" properties. Add "event-mapped"
      	signal which carries the action_name.
      
      	* app/widgets/gimpcontrollers.c: removed all deserialization code
      	and simply (de)serialize the controller container. Install a
      	container handler for "event-mapped" and do the action_name ->
      	action mapping in the callback.
      
      	* etc/controllerrc: regenerated with new syntax. Delete your old one!
      3a7f7d54
    • Sven Neumann's avatar
      don't use gettext() here. · 429b090f
      Sven Neumann authored
      2004-06-16  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontrollerwheel.c
      	(gimp_controller_wheel_get_event_name): don't use gettext() here.
      
      	* modules/controller_linux_input.c: added more button events, set
      	the device name, some cleanup.
      429b090f
    • Michael Natterer's avatar
      added GimpController::get_event_blurb() which returns the strings that · 569af0ac
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.[ch]: added
      	GimpController::get_event_blurb() which returns the strings that
      	were returned by get_event_name(). The latter returns
      	untranslatable event identifiers now.
      
      	* app/widgets/gimpcontrollerwheel.c
      	* modules/controller_linux_input.c: changed accordingly.
      
      	* app/widgets/gimpcontrollerinfo.c
      	* app/widgets/gimpcontrollers.c: changed the event mapping from
      	event-id -> action-name to event-name -> action-name.
      
      	* etc/controllerrc: changed accordingly (finally readable now).
      569af0ac
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h made an object out of · ba2e6c67
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontrollerinfo.[ch]: made an object out of
      	the GimpControllerInfo struct.
      
      	* app/widgets/gimpcontrollers.c: changed accordingly.
      ba2e6c67
    • Michael Natterer's avatar
      better debugging output. · 3474308c
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollers.c: better debugging output.
      3474308c
    • Sven Neumann's avatar
      bug fix. · f4208e33
      Sven Neumann authored
      2004-06-16  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontrollers.c: bug fix.
      
      	* configure.in: check for linux/input.h.
      
      	* modules/Makefile.am
      	* modules/controller_linux_input.c: added a prototype controller
      	module using the linux input event interface.
      
      	* etc/controllerrc: added example config for linux input device.
      f4208e33
    • Michael Natterer's avatar
      load the controller's properties from the controllerrc file. · 1713ef21
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollers.c: load the controller's
      	properties from the controllerrc file.
      
      	* etc/controllerrc: set the wheel's properties.
      1713ef21
    • Michael Natterer's avatar
      ref the actions when putting them in the mapping table. · aa96898f
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontrollers.c: ref the actions when putting
      	them in the mapping table.
      
      	* app/actions/context-actions.c: added actions to change the
      	opacity in 10% steps.
      aa96898f