1. 17 May, 2008 2 commits
    • Michael Natterer's avatar
      add help IDs for the stuff in the Windows menu. · a3bde5d6
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: add help IDs for the stuff in the
      	Windows menu.
      
      	* app/actions/windows-actions.c: use them.
      
      
      svn path=/trunk/; revision=25687
      a3bde5d6
    • Michael Natterer's avatar
      add tooltips to the menu items of open and recently closed docks. · fe395446
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/windows-actions.c: add tooltips to the menu items of
      	open and recently closed docks.
      
      	* app/widgets/gimpaction.c: connect to "notify::tooltip" and make
      	sure gimp_help_set_help_data() gets called when the action's
      	tooltip changes.
      
      
      svn path=/trunk/; revision=25684
      fe395446
  2. 16 May, 2008 1 commit
    • Michael Natterer's avatar
      Implement the presistent menu of recently closed docks, still somewhat · ff5310a4
      Michael Natterer authored
      2008-05-16  Michael Natterer  <mitch@gimp.org>
      
      	Implement the presistent menu of recently closed docks, still
      	somewhat hackish but fully functional. Fixes bug #132744.
      
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.[ch]
      	* menus/image-menu.xml.in: remove the menu items that were
      	creating the hardcoded preconfigured docks.
      
      	* app/dialogs/dialogs.[ch]: add GimpContainer of recently closed
      	docks and API to load and save it.
      
      	* app/gui/session.c: call the recent dock load and save functions.
      
      	* app/widgets/gimpsessioninfo.[ch]: implement the GimpConfig interface
      	and (de)serialize via proper interface methods.
      
      	* app/gui/session.c
      	* app/widgets/gimpdialogfactory.c: use the GimpConfig API
      	to (de)serialize session infos and added the code that was
      	formerly in the info's (de)serialize functions but didn't belong
      	there.
      
      	* app/widgets/gimpaction.[ch]: add "max-width-chars" property and
      	set it on proxy menu item labels.
      
      	* app/actions/windows-actions.[ch]
      	* app/actions/windows-commands.[ch]
      	* app/menus/windows-menu.c: add actions and menu of recently
      	closed docks and code to restore the dock when the menu items are
      	selected. Use above new action property to ensure a minimum
      	width of the menu.
      
      	* app/widgets/gimpmenudock.c: use '-' instead of '|' for
      	separating notebooks in the window title. Menu items don't like	'|'.
      
      	* app/widgets/gimpdock.c: removed the confirmation dialog when
      	closing docks and simply add them to the recent docks container.
      	This code is totally misplaced and will move to another file soon.
      
      
      svn path=/trunk/; revision=25671
      ff5310a4
  3. 14 May, 2008 2 commits
    • Sven Neumann's avatar
      fixed use of uninitialized value. · c1c17203
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcurveview.c (gimp_curve_view_motion_notify):
      	fixed use of uninitialized value.
      
      svn path=/trunk/; revision=25668
      c1c17203
    • Michael Natterer's avatar
      remove widget member from struct GimpSessionInfoBook. Return the created · 9ca46cca
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo-book.[ch]: remove widget member from
      	struct GimpSessionInfoBook. Return the created GimpDockbook from
      	restore().
      
      	* app/widgets/gimpsessioninfo-dock.c (restore): use the returned
      	book instead of the struct member.
      
      
      svn path=/trunk/; revision=25658
      9ca46cca
  4. 13 May, 2008 3 commits
    • Michael Natterer's avatar
      Made session info serialization independent from widgets so it can be used · 5766498f
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	Made session info serialization independent from widgets so it can
      	be used on stored dock layouts which are not open:
      
      	* app/widgets/gimpsessioninfo-book.[ch]
      	* app/widgets/gimpsessioninfo-dock.[ch]
      	* app/widgets/gimpsessioninfo-dockable.[ch]: add from_widget()
      	functions which return newly allocated session info structs.
      	Changed serialize() functions to take these structs instead of
      	widgets. Changed deserialize() functions to return the structs
      	instead of appending them to lists in their parent structs. Don't
      	free anything in restore().
      
      	* app/widgets/gimpsessioninfo-aux.[ch]
      	(gimp_session_info_aux_serialize): take a GList of aux_info
      	instead of a widget.
      
      	* app/widgets/gimpsessioninfo.[ch]: add new functions get_info()
      	which collects above session info details from dialogs and
      	clear_info() which clears that info. Call clear_info() from
      	finalize(). Don't free anything in restore().
      
      	* app/widgets/gimpdialogfactory.c
      	(gimp_dialog_factories_save_foreach): collect the session info
      	detials from the dialogs before serializing because serialize()
      	doesn't know about the widget any longer. Clear the infos after
      	serializing.
      
      	(gimp_dialog_factories_restore_foreach): clear the session info
      	details after creating the dialogs because restore() doesn't clear
      	the info by itself any longer.
      
      
      svn path=/trunk/; revision=25657
      5766498f
    • Michael Natterer's avatar
      turn "info != NULL" checks into "GIMP_IS_SESSION_INFO (info)". · 24a7aa75
      Michael Natterer authored
      2008-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo.c: turn "info != NULL" checks into
      	"GIMP_IS_SESSION_INFO (info)".
      
      
      svn path=/trunk/; revision=25656
      24a7aa75
    • Michael Natterer's avatar
      turn into a GimpObject subclass. No logical changes yet. · 0b0d0aad
      Michael Natterer authored
      2008-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo.[ch]: turn into a GimpObject
      	subclass. No logical changes yet.
      
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpdialogfactory.c: changed accordingly.
      
      
      svn path=/trunk/; revision=25655
      0b0d0aad
  5. 12 May, 2008 1 commit
    • Simon Budig's avatar
      app/vectors/gimpvectors.[ch] app/vectors/gimpstroke.[ch] Implement · 80039486
      Simon Budig authored
      2008-05-12  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpvectors.[ch]
      	* app/vectors/gimpstroke.[ch]
      	* app/vectors/gimpbezierstroke.c: Implement functionality to
      	get a bezier description a la moveto/curveto/closepath.
      
      	* app/vectors/vectors-types.h: implement an evil hack to avoid
      	the inclusion of cairo.h in most C files...
      
      	* app/vectors/Makefile.am: link against cairo
      
      	* app/widgets/gimpviewrenderervectors.c: use the new functionality
      	for preview rendering.
      
      
      svn path=/trunk/; revision=25645
      80039486
  6. 11 May, 2008 4 commits
    • Sven Neumann's avatar
      app/core/Makefile.am · 6e6a0355
      Sven Neumann authored
      2008-05-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpcurve.[ch]:
      	* app/core/gimpcurve-map.[ch]: split curve map functions into
      	seperate files.
      
      	* app/gegl/gimpoperationcurves.c
      	* app/tools/gimpcurvestool.c
      	* app/widgets/gimpcurveview.c: changed accordingly.
      
      	* app/Makefile.am (AM_LDFLAGS): make it link.
      
      
      svn path=/trunk/; revision=25642
      6e6a0355
    • Sven Neumann's avatar
      renamed gimp_curve_map() to gimp_curve_map_value(). Added new function · a392a231
      Sven Neumann authored
      2008-05-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve.[ch]: renamed gimp_curve_map() to
      	gimp_curve_map_value(). Added new function 
      gimp_curve_map_pixels()
      	which will allow for better optimization.
      
      	* app/gegl/gimpoperationcurves.c 
      (gimp_operation_curves_process):
      	use gimp_curve_map_pixels().
      
      	* app/tools/gimpcurvestool.c
      	* app/widgets/gimpcurveview.c: follow API change.
      
      
      svn path=/trunk/; revision=25641
      a392a231
    • Michael Natterer's avatar
      add an "ellipsize" property that is applied to all proxy menu items' · 1e50d79b
      Michael Natterer authored
      2008-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpaction.[ch]: add an "ellipsize" property that is
      	applied to all proxy menu items' labels.
      
      	* app/actions/windows-actions.c: set the dock actions to
      	PANGO_ELLIPSIZE_END because their labels can be insanely long.
      
      
      svn path=/trunk/; revision=25635
      1e50d79b
    • Michael Natterer's avatar
      small cleanup. · a0e6800c
      Michael Natterer authored
      2008-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpaction.c (gimp_action_set_proxy): small cleanup.
      
      
      svn path=/trunk/; revision=25634
      a0e6800c
  7. 10 May, 2008 3 commits
    • Michael Natterer's avatar
      add signals "dock-added" and "dock-removed". · fb904ad1
      Michael Natterer authored
      2008-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: add signals "dock-added" and
      	"dock-removed".
      
      	(gimp_dialog_factory_add_dialog)
      	(gimp_dialog_factory_remove_dialog): emit them when docks get
      	added and removed.
      
      
      svn path=/trunk/; revision=25629
      fb904ad1
    • Michael Natterer's avatar
      fix parameter name. · 4717f727
      Michael Natterer authored
      2008-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpactiongroup.h: fix parameter name.
      
      
      svn path=/trunk/; revision=25625
      4717f727
    • Sven Neumann's avatar
      reset the translation on the cairo context. Resurrects brush emblems which · 6859c9f6
      Sven Neumann authored
      2008-05-10  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpviewrenderer.c (gimp_view_renderer_real_draw):
      	reset the translation on the cairo context. Resurrects brush
      	emblems which were drawn in the wrong position.
      
      	* app/widgets/gimpviewrendererbrush.c 
      (gimp_view_renderer_brush_draw):
      	formatting.
      
      
      svn path=/trunk/; revision=25614
      6859c9f6
  8. 08 May, 2008 3 commits
    • Sven Neumann's avatar
      move the focus to the canvas on button-press events. · 7a8abc28
      Sven Neumann authored
      2008-05-08  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_events): move the focus to the canvas on
      	button-press events.
      
      	* app/widgets/gimpwindow.c (gimp_window_key_press_event): 
      removed
      	a use of G_UNLIKELY() that is somewhat bogus here.
      
      
      svn path=/trunk/; revision=25587
      7a8abc28
    • Sven Neumann's avatar
      added infrastructure to access and set some state information of the · 62fdd17b
      Sven Neumann authored
      2008-05-08  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch]: added infrastructure to 
      access
      	and set some state information of the GtkFileChooser.
      
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-save-dialog.c: don't keep the file-chooser
      	dialogs around. Instead keep the state attached to the Gimp 
      object
      	(one state for load, one for save dialogs). Closes bug #528811.
      
      
      svn path=/trunk/; revision=25586
      62fdd17b
    • Sven Neumann's avatar
      app/widgets/widgets-types.h formatting. · 7bacfae9
      Sven Neumann authored
      2008-05-08  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/widgets-types.h 
      	* app/widgets/gimpfiledialog.c: formatting.
      
      
      svn path=/trunk/; revision=25585
      7bacfae9
  9. 29 Apr, 2008 1 commit
    • Sven Neumann's avatar
      formatting. · a780a378
      Sven Neumann authored
      2008-04-29  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpwindow.c (gimp_window_key_press_event): 
      formatting.
      
      
      svn path=/trunk/; revision=25548
      a780a378
  10. 28 Apr, 2008 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h added GimpWindow class · f23d0469
      Sven Neumann authored
      2008-04-28  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpwindow.[ch]: added GimpWindow class and moved
      	key-press-event handler from GimpDock to this class.
      
      	* app/widgets/gimpdock.[ch]:
      	* app/display/gimpdisplayshell.[ch]: derive from GimpWindow.
      
      
      svn path=/trunk/; revision=25541
      f23d0469
  11. 25 Apr, 2008 2 commits
  12. 13 Apr, 2008 1 commit
    • Sven Neumann's avatar
      added "label-scale" style property. · d8ad4cfa
      Sven Neumann authored
      2008-04-13  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpunitcombobox.c: added "label-scale" style 
      property.
      
      	* app/display/gimpscalecombobox.[ch]: ditto. Also removed the
      	support for extra action items.
      
      	* app/display/gimpstatusbar.c: changed accordingly.
      
      	* themes/Default/gtkrc
      	* themes/Small/gtkrc: use a smaller font for the combo-box 
      labels
      	in the statusbar.
      
      
      svn path=/trunk/; revision=25475
      d8ad4cfa
  13. 12 Apr, 2008 1 commit
    • Martin Nordholts's avatar
      Applied modified patch from Daniel Hornung that changes the mouse cursor · a8bbf6b2
      Martin Nordholts authored
      2008-04-12  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Applied modified patch from Daniel Hornung that changes the mouse
      	cursor to a "clicking will create a selection"-icon when hovering
      	the center of a pending Scissors Select Tool selection (bug #493370)
      
      	* app/tools/gimpiscissorstool.c
      	(gimp_iscissors_tool_cursor_update): Use the new cursor icon.
      
      	* cursors/modifier-select.png
      	* cursors/xbm/modifier-select.xbm
      	* cursors/xbm/modifier-select-mask.xbm: New cursor icon.
      
      	* cursors/makefile.msc
      	* cursors/Makefile.am 
      	* app/widgets/gimpcursor.c
      	* app/widgets/widgets-enums.h: Changed accordingly.
      
      svn path=/trunk/; revision=25473
      a8bbf6b2
  14. 10 Apr, 2008 1 commit
  15. 09 Apr, 2008 2 commits
    • Sven Neumann's avatar
      disabled the language entry until it works. · 08a4422c
      Sven Neumann authored
      2008-04-09  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptexteditor.c (gimp_text_editor_new): disabled
      	the language entry until it works.
      
      svn path=/trunk/; revision=25432
      08a4422c
    • Sven Neumann's avatar
      added new methods gimp_container_get_{first,last}_child(). · 3f2385dc
      Sven Neumann authored
      2008-04-09  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcontainer.[ch]: added new methods
      	gimp_container_get_{first,last}_child().
      
      	* app/actions/file-actions.c (file_actions_close_all_update)
      	* app/dialogs/layer-add-mask-dialog.c (layer_add_mask_dialog_new)
      	* app/dialogs/palette-import-dialog.c (palette_import_image_callback)
      	* app/gui/gui-vtable.c (gui_get_empty_display): 
      	* app/widgets/gimpmenudock.c (gimp_menu_dock_image_changed): use
      	the new GimpContainer methods.
      
      	* app/core/gimpundostack.c: use the new GimpContainer methods and
      	cleaned up the code.
      
      svn path=/trunk/; revision=25426
      3f2385dc
  16. 08 Apr, 2008 1 commit
    • Michael Natterer's avatar
      set GDK_HINT_MIN_SIZE on dialogs which had no previous sessionrc entry. · 23149704
      Michael Natterer authored
      2008-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.c
      	(gimp_dialog_factory_set_user_pos): set GDK_HINT_MIN_SIZE on
      	dialogs which had no previous sessionrc entry. Fixes the minimum
      	size of the very first empty display of a new GIMP installation
      	and shouldn't have any ill effects on other windows.
      
      
      svn path=/trunk/; revision=25409
      23149704
  17. 05 Apr, 2008 2 commits
  18. 31 Mar, 2008 1 commit
  19. 30 Mar, 2008 2 commits
  20. 29 Mar, 2008 2 commits
    • Michael Natterer's avatar
      app/display/gimpcanvas.c app/widgets/gimpcoloreditor.c · 8088b64c
      Michael Natterer authored
      2008-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpcanvas.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcolorframe.c
      	* app/widgets/gimpcursorview.c
      	* app/widgets/gimpcurveview.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimpdockseparator.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpmenudock.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/widgets/gimptoolbox.c: chain up unconditionally in
      	GtkWidget::style_set() because there is has a default
      	implementation.
      
      
      svn path=/trunk/; revision=25307
      8088b64c
    • Michael Natterer's avatar
      when the "Auto" button gets enabled, always copy both display and image to · e21528d4
      Michael Natterer authored
      2008-03-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpmenudock.c (gimp_menu_dock_auto_clicked): when
      	the "Auto" button gets enabled, always copy both display and image
      	to the local context (because there can be displays without image
      	now).
      
      
      svn path=/trunk/; revision=25306
      e21528d4
  21. 28 Mar, 2008 1 commit
    • Sven Neumann's avatar
      deprecate gimp_memsize_to_string() in favor of · fc93cc19
      Sven Neumann authored
      2008-03-28  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/gimpmemsize.[ch]: deprecate gimp_memsize_to_string()
      	in favor of g_format_size_for_display().
      
      	* app/actions/edit-commands.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/image-scale-dialog.c
      	* app/display/gimpdisplayshell-title.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimpthumbbox.c
      	* plug-ins/uri/uri-backend-gnomevfs.c
      	* plug-ins/uri/uri-backend-gvfs.c
      	* plug-ins/uri/uri-backend-libcurl.c
      	* plug-ins/uri/uri-backend-wget.c: use g_format_size_for_display()
      	instead of gimp_memsize_to_string().
      
      svn path=/trunk/; revision=25285
      fc93cc19
  22. 27 Mar, 2008 1 commit
  23. 26 Mar, 2008 2 commits
    • Michael Natterer's avatar
      make the wilber area a bit smaller. · ed7268c0
      Michael Natterer authored
      2008-03-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimptoolbox.c: make the wilber area a bit smaller.
      
      
      svn path=/trunk/; revision=25251
      ed7268c0
    • Michael Natterer's avatar
      store the toolbox area's vbox in the widget struct. · e842dbe6
      Michael Natterer authored
      2008-03-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimptoolbox.[ch]: store the toolbox area's vbox in
      	the widget struct.
      
      	* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_dnd_init): use it as
      	DND target instead of the wbox with the tool buttons.
      
      
      svn path=/trunk/; revision=25250
      e842dbe6