Commit Graph

2545 Commits

Author SHA1 Message Date
Sven Neumann 4c5cfb61d3 added Activate method.
2007-01-23  Sven Neumann  <sven@gimp.org>

        * app/widgets/dbus-service.xml: added Activate method.

        * app/widgets/gimpdbusservice.[ch]: raise the toolbox from the
        Activate method. Do nothing when no URIs are passed

        * app/main.c: try the Activate method on the org.gimp.GIMP 
service
        when being called without any filenames on the command-lines.


svn path=/trunk/; revision=21761
2007-01-22 23:25:37 +00:00
Sven Neumann 6414b2ea5d added utility function that handles opening files passed on the
2007-01-22  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.[ch]: added utility function that handles
	opening files passed on the command-line.

	* app/app_procs.c
	* app/widgets/gimpdbusservice.c: use the new function instead of
	duplicating the code.


svn path=/trunk/; revision=21759
2007-01-22 21:39:57 +00:00
Sven Neumann 0e55a7f5f7 don't add the open-as-image button to all data factory views.
2007-01-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdatafactoryview.c: don't add the open-as-image
	button to all data factory views.

	* app/widgets/gimppatternfactoryview.c: but do it here for the
	Pattern dialog.


svn path=/trunk/; revision=21755
2007-01-22 16:55:39 +00:00
Michael Natterer a4863593ec Close the display after "Save as" when invoked via the "Close Without
2007-01-20  Michael Natterer  <mitch@gimp.org>

	Close the display after "Save as" when invoked via the "Close
	Without Saving" dialog. Fixes bug #383700.

	* app/actions/actions-types.h: added enum GimpSaveMode { SAVE,
	SAVE_AS, SAVE_A_COPY, SAVE_AND_CLOSE }.

	* app/actions/file-actions.c: changed the 4 save actions into
	GimpEnumActions with above enum as values.

	* app/actions/file-commands.[ch]: merged the save callbacks into
	one and pass a "close_after_saving" boolean to
	file_save_dialog_show().

	* app/widgets/gimpfiledialog.[ch]: added "gboolean
	close_after_saving" parameter to gimp_file_dialog_set_image() and
	to the GimpFileDialog struct.

	* app/dialogs/file-save-dialog.c: if the file was saved
	successfully and close_after_saving is TRUE, close the display if
	the image has not become dirty again in the meantime.


svn path=/trunk/; revision=21743
2007-01-20 19:38:09 +00:00
Sven Neumann bfd1dd5f07 INSTALL check for D-Bus GLib bindings.
2007-01-19  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: check for D-Bus GLib bindings.

	* app/Makefile.am
	* app/main.c: check if an interactive GIMP instance proposes
	itself on the D-Bus and delegate to it. Allow this behaviour to be
	overridden by using the --new-instance command-line option.

	* app/widgets/Makefile.am
	* app/widgets/gimpdbusservice.[ch]
	* app/widgets/dbus-service.xml: added an object that offers a
	D-Bus service.

	* app/gui/Makefile.am
	* app/gui/gui.c: connect to the D-Bus and export the GimpDBusService.


svn path=/trunk/; revision=21737
2007-01-19 14:50:13 +00:00
Sven Neumann 7570bf60ee use GTK_RESPONSE_ACCEPT to make it work properly with
2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprofilechooserdialog.c: use GTK_RESPONSE_ACCEPT
	to make it work properly with GtkFileChooserButton.


svn path=/trunk/; revision=21723
2007-01-16 10:21:00 +00:00
Sven Neumann 7f7d4366a0 include *.icm files in the filter. Add a shortcut to the systemwide color
2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprofilechooserdialog.c: include *.icm files in
	the filter. Add a shortcut to the systemwide color profile 
folder.


svn path=/trunk/; revision=21722
2007-01-16 08:02:30 +00:00
Hans Breuer f8d14112c4 updated #include "file/file-utils.h" for file_utils_uri_display_name
2007-01-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/display/gimpdisplay-handlers.c : #include "file/file-utils.h"
	for file_utils_uri_display_name
	* plug-ins/imagemap/imap_statusbar.c : g_snprintf instead of snprintf


svn path=/trunk/; revision=21705
2007-01-13 22:41:21 +00:00
Sven Neumann fa8e72ba1d app/widgets/gimpfiledialog.c save some string copies by changing
2007-01-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpthumbbox.[ch]: save some string copies by
	changing gimp_thumb_box_set_uri() to gimp_thumb_box_take_uri().


svn path=/trunk/; revision=21701
2007-01-13 16:56:30 +00:00
Michael Natterer 09f47a0aec register GIMP_TYPE_DASH_PATTERN as boxed type. Added "new" to function
2007-01-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdashpattern.[ch]: register GIMP_TYPE_DASH_PATTERN
	as boxed type. Added "new" to function names which create dash
	patterns. Changed and renamed GValue functions to functions which
	convert the dash pattern between GArray and GValueArray.

	* app/core/gimpstrokeoptions.c
	* app/widgets/gimpcellrendererdashes.c
	* app/widgets/gimpstrokeeditor.c: changed accordingly.

	* app/widgets/gimpdasheditor.c: ditto. Get rid of the recently
	added manual memory management. The list store manages boxed types
	all by itself.


svn path=/trunk/; revision=21698
2007-01-12 20:27:40 +00:00
Sven Neumann e2287771fc fixed memory management of dash patterns (bug #395043).
2007-01-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpstrokeeditor.c: fixed memory management of dash
	patterns (bug #395043).


svn path=/trunk/; revision=21690
2007-01-12 12:14:06 +00:00
Tor Lillqvist 33e8de759b Add workaround for a problem that occurs on Win32 when one has opened an
2007-01-04  Tor Lillqvist  <tml@novell.com>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): Add
	workaround for a problem that occurs on Win32 when one has opened
	an image from the root of a drive letter and then does Save As.


svn path=/trunk/; revision=21639
2007-01-04 01:08:09 +00:00
Michael Natterer 9fd79d8bcd compile before you commit :P
2006-12-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.c
	(gimp_prop_ratio_entry_notify): compile before you commit :P


svn path=/trunk/; revision=21615
2006-12-30 17:31:21 +00:00
Simon Budig 7a3eb8dcd3 New files implementing a widget for entering ratios. Will be improved over
2006-12-30  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpratioentry.[ch]: New files implementing a widget
	for entering ratios. Will be improved over time...

	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly.

	* app/widgets/gimppropwidgets.c: use it for the crop/rectangle
	select tools.

svn path=/trunk/; revision=21613
2006-12-30 15:25:11 +00:00
Sven Neumann 930d6149da removed all .cvsignore files from SVN
svn path=/trunk/; revision=21612
2006-12-30 14:31:03 +00:00
Seth Burgess ae1e568413 app/widgets/gimpdasheditor.h fixed improper _GET_CLASS macros
12-28-06 Seth Burgess  <sjburges@gimp.org>

        * app/widgets/gimpdasheditor.h
        * app/widgets/gimphistogramview.h: fixed improper _GET_CLASS macros
2006-12-28 15:44:51 +00:00
Michael Natterer 59269cf704 don't do stuff on NULL mask view renderers. Fixes bug #389307.
2006-12-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	(gimp_layer_tree_view_set_context): don't do stuff on NULL mask
	view renderers. Fixes bug #389307.
2006-12-25 14:51:53 +00:00
Sven Neumann 541c8af049 app/core/gimp-documents.c app/core/gimp-parasites.c
2006-12-22  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-documents.c
	* app/core/gimp-parasites.c
	* app/core/gimp-templates.c
	* app/core/gimp-units.c
	* app/widgets/gimpcontrollers.c: changed the header that is
	written to config files that are rewritten on exit.

	* app/tools/gimpiscissorstool.c: comment.
2006-12-22 10:09:09 +00:00
Sven Neumann fd2b9ce3e9 app/plug-in/plug-in-icc-profile.[ch] removed run-mode argument from
2006-12-18  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-icc-profile.[ch]
	* plug-ins/common/lcms.c: removed run-mode argument from
	plug-in-icc-profile-info. Added new procedure to obtain
information
	about a color profile on disk.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpprofilechooserdialog.[ch]: added a first draft
	of a file-chooser dialog for selecting a color profile.

	* app/dialogs/preferences-dialog.c: use it.
2006-12-18 08:15:56 +00:00
Sven Neumann 50fabff948 added new function gimp_ui_manager_activate_action() as a shortcut for
2006-12-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpuimanager.[ch]: added new function
	gimp_ui_manager_activate_action() as a shortcut for looking up the
	action and activating it.

	* app/actions/dialogs-actions.c
	* app/display/gimpdisplayshell-close.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimptooloptionseditor.c: use the new function.

	* app/actions/file-commands.c
	* app/dialogs/file-save-dialog.c: minor code cleanup.
2006-12-15 12:03:47 +00:00
Michael Natterer 98ae7326d7 Applied slightly modified patch from David Gowers which abstracts away and
2006-12-14  Michael Natterer  <mitch@gimp.org>

	Applied slightly modified patch from David Gowers which abstracts
	away and unifies seraching a color in a palette (bug #132146):

	* app/core/gimppalette.[ch]: added gimp_palette_find_entry().

	* app/widgets/gimpcolorselectorpalette.c
	* app/widgets/gimppaletteeditor.c: use it for selecting matching
	colors from the active palette.
2006-12-14 12:02:05 +00:00
Sven Neumann 25dc6fe45d check ui_manager before accessing it. Fixes warnings on destruction.
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): check
	ui_manager before accessing it. Fixes warnings on destruction.
2006-12-12 13:01:53 +00:00
Sven Neumann d0e118dc9c slightly increased size of the quick-mask and zoom-mode buttons. Also
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
	slightly increased size of the quick-mask and zoom-mode buttons.
	Also changed the style to not displace the icon when the buttons
	are pressed.

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-appearance.c: changed "origin_button"
	to "origin". Don't draw it as a button but use an event box just
	like we do for the navigation icon in the lower right corner.

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): use the viewable description
	for the drawable's name. We don't want to see "Qmask" in the
	statusbar.

	* app/widgets/gimpwidgets-utils.c (gimp_button_menu_position): fix
	for the case where button is not really a GtkButton but has it's
	own window.

	* app/widgets/gimphelp-ids.h: changed help ID, removed unused one.

	* libgimpwidgets/gimpstock.c
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-quick-mask-off-12.png
	* themes/Default/images/stock-quick-mask-off-16.png
	* themes/Default/images/stock-quick-mask-on-12.png
	* themes/Default/images/stock-quick-mask-on-16.png: cropped empty
	space from the quick-mask icon.
2006-12-12 11:20:59 +00:00
Sven Neumann 4fb72eb8cf added API to delete saved tool-options.
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/core/gimptooloptions.[ch]: added API to delete saved
	tool-options.

	* app/tools/gimp-tools.c: don't deal with saving presets, just
	load them on startup. Create the tool-options directory when
	saving tool-options.

	* app/core/gimptoolpresets.[ch]: added new signal that is
emitted
	whenever the presets changes. Create the tool-options directory
	when saving a preset.

	* app/widgets/gimptooloptionseditor.[ch]: listen to the
"changed"
	signal of GimpToolPresets and queue an idle save.
2006-12-11 15:16:13 +00:00
Sven Neumann df8bf728a6 app/core/Makefile.am app/core/core-types.h added GimpToolPresets, derived
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimptoolpresets.[ch]: added GimpToolPresets, derived
	from GimpList.

	* app/core/gimptoolinfo.[ch]: use the new type, renamed
	member "options_presets" to "presets".

	* app/actions/tool-options-actions.c
	* app/actions/tool-options-commands.c
	* app/core/gimptooloptions.[ch]
	* app/menus/tool-options-menu.c
	* app/widgets/gimptooloptionseditor.c: changed accordingly.

	* app/tools/gimp-tools.c: let the GimpToolPresets object deal
with
	loading and saving the presets from ${gimpdir}/tool-options.

	* app/core/gimpcontainer-filter.c
	* app/core/gimpdocumentlist.c
	* app/core/gimplist.c
	* app/text/gimpfontlist.c: use canonical property names.
2006-12-10 19:13:58 +00:00
Michael Natterer 6be00cbaf9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: forgot LIBGIMP -> GIMP
2006-12-10 16:38:48 +00:00
Michael Natterer afd0b332d9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: license is GPL, not LGPL.
2006-12-09 21:51:48 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Sven Neumann 010d9ff7cf removed obsolete parameter from gtk-doc comment.
2006-11-30  Sven Neumann  <sven@gimp.org>

        * app/widgets/gimppropwidgets.c (gimp_prop_color_button_new):
        removed obsolete parameter from gtk-doc comment.
2006-11-30 15:30:25 +00:00
Sven Neumann d77ac40cbf typo.
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_color_button_new): typo.
2006-11-27 12:08:57 +00:00
Michael Natterer 146e063f0a app/core/gimpbrushclipboard.c app/core/gimppatternclipboard.c
2006-11-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	* app/core/gimppatternclipboard.c
	* app/core/gimptooloptions.c
	* app/core/gimpundo.c
	* app/widgets/gimpdevicestatus.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpimageparasiteview.c
	* app/widgets/gimpimagepropview.c: no need to cast the return
	value of g_value_get_object(), it's a gpointer.
2006-11-25 14:57:26 +00:00
Simon Budig 223a578b35 libgimpwidgets/gimpresolutionentry.c fix typo in a function name.
2006-11-25  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c
	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.

	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimppaletteeditor.c
	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: handle all enum values
	and use sane ones.

	* app/widgets/gimpcontrollerinfo.c: fix a warning.
2006-11-25 00:13:08 +00:00
Simon Budig 0308d410b4 Fixing include/declaration issues in the application:
2006-11-23  Simon Budig  <simon@gimp.org>

	Fixing include/declaration issues in the application:

	* app/composite/gimp-composite-sse2.c: disable unused debugging code

	* app/paint-funcs/paint-funcs.[ch]
	* app/paint-funcs/scale-funcs.[ch]: fix include files, add some
	prototypes, make some other functions static.

	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-preview.c: changed accordingly.

	* app/tools/gimpeditselectiontool.[ch]: untangle .c and .h file.

	* app/widgets/gimpfiledialog.c: add missing #include.
2006-11-24 14:08:40 +00:00
Michael Natterer 35a5a46a4a plug-ins/help/gimphelpitem.[ch] added some EEKy members to the structs
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help/gimphelpitem.[ch]
	* plug-ins/help/gimphelplocale.[ch]: added some EEKy members to
	the structs where the browser can store its state.

	* plug-ins/helpbrowser/Makefile.am
	* plug-ins/helpbrowser/helpbrowser.c: link against libgimphelp.a
	and implement all the help ID mapping ourselves.

	* plug-ins/helpbrowser/dialog.[ch]: added a tree view with the
	help IDs of the current help domain. Double click to jump to an
	item. Very early-stage code and very unusable, please try anyway.

	* app/widgets/gimphelp.c: if the help browser is available, call
	it directly, not via the help plug-in.
2006-11-23 21:04:41 +00:00
Sven Neumann aa09e29272 don't raise and focus the error console for not so severe error messages.
2006-11-22  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-message.c (gui_message_error_console): don't raise
	and focus the error console for not so severe error messages. Fixes
	bug #322210 and bug #373254.

	* app/widgets/gimperrorconsole.c (gimp_error_console_init): reduced
	font sizes in error console.
2006-11-22 16:33:31 +00:00
Michael Natterer 02de3076c9 Got rid of the word "editor" were it was good for nothing but exposing an
2006-11-17  Michael Natterer  <mitch@gimp.org>

	Got rid of the word "editor" were it was good for nothing but
	exposing an implementation detail in public API and installed
	files.  Fixes bug #345251:

	* app/actions/colormap-editor-actions.[ch]
	* app/actions/colormap-editor-commands.[ch]
	* app/actions/sample-point-editor-actions.[ch]
	* app/actions/sample-point-editor-commands.[ch]
	* menus/colormap-editor-menu.xml
	* menus/sample-point-editor-menu.xml
	* menus/selection-editor-menu.xml
	* menus/undo-editor-menu.xml: removed.

	* app/actions/colormap-actions.[ch]
	* app/actions/colormap-commands.[ch]
	* app/actions/sample-points-actions.[ch]
	* app/actions/sample-points-commands.[ch]
	* menus/colormap-menu.xml
	* menus/sample-points-menu.xml
	* menus/selection-menu.xml
	* menus/undo-menu.xml: added.

	* app/actions/Makefile.am
	* menus/Makefile.am
	* app/actions/actions.c
	* app/menus/menus.c
	* app/menus/plug-in-menus.c
	* app/plug-in/gimppluginprocedure.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpsamplepointeditor.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpundoeditor.c
	* plug-ins/common/colormap-remap.c: changed accordingly.
2006-11-17 22:07:07 +00:00
Sven Neumann 13004433f5 cursors/Makefile.am cursors/cursor-move.png cursors/gimp-tool-cursors.xcf
2006-11-15  Sven Neumann  <sven@gimp.org>

	* cursors/Makefile.am
	* cursors/cursor-move.png
	* cursors/gimp-tool-cursors.xcf
	* cursors/xbm/cursor-move-mask.xbm
	* cursors/xbm/cursor-move.xbm: added new cursor.

	* app/widgets/gimpcursor.c
	* app/widgets/widgets-enums.h: added as GIMP_CURSOR_MOVE.

	* app/tools/gimprectangletool.c: use instead of a cursor
modifier.
2006-11-15 22:43:24 +00:00
Sven Neumann da2253fce0 don't use gimp_dialog_set_sensitive(); just make the entry not editable
2006-11-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-open-location-dialog.c: don't use
	gimp_dialog_set_sensitive(); just make the entry not editable and
	the dialog's OK button insensitive.

	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpwidgets-utils.[ch]: moved gimp_dialog_set_sensitive()
	implementation into gimp_file_dialog_set_sensitive().
2006-11-14 13:46:43 +00:00
Michael Natterer 85cecec576 app/base/base.c app/core/gimp-user-install.c
2006-11-12  Michael Natterer  <mitch@gimp.org>

	* app/base/base.c
	* app/core/gimp-user-install.c
	* app/core/gimpbrushgenerated-load.c
	* app/core/gimpcontainer.c
	* app/core/gimpgradient-load.c
	* app/core/gimppalette-load.c
	* app/core/gimpparamspecs-desc.c
	* app/dialogs/tips-parser.c
	* app/menus/plug-in-menus.c
	* app/plug-in/gimppluginmanager.c
	* app/plug-in/gimppluginprocedure.c
	* app/text/gimptext-parasite.c
	* app/tools/gimpforegroundselecttool.c
	* app/widgets/gimpselectiondata.c
	* app/xcf/xcf.c: use g_str_has_prefix() instead of strncmp().
2006-11-12 20:30:50 +00:00
Michael Natterer eae43600da *** empty log message *** 2006-11-05 18:53:13 +00:00
Michael Natterer 0e4f794f46 app/widgets/gimpcoloreditor.c temporarily attach the context to the
2006-11-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcolordialog.c: temporarily attach the context to
	the GimpColorConfig object while calling the color selector's
	set_config().

	* app/widgets/gimpcolorselectorpalette.c: moved widget creation
	and signal connecting to GimpColorSelector::set_config() and
	use the context attached to the passed GimpColorConfig object.
2006-11-03 21:29:42 +00:00
Michael Natterer e896521924 added gimp_image_add_layers() which takes a list of layers and vierport
2006-11-03  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.[ch]: added gimp_image_add_layers() which
	takes a list of layers and vierport coordinates to center the
	layers in.

	* app/dialogs/file-open-dialog.c
	* app/display/gimpdisplayshell-dnd.c
	* app/widgets/gimplayertreeview.c: use it instead of having the
	same code three times.
2006-11-03 19:59:30 +00:00
Michael Natterer ef52e7a9fd select a matching color in the palette if possible.
2006-11-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.c
	(gimp_color_selector_palette_set_color): select a matching color
	in the palette if possible.
2006-11-03 17:39:05 +00:00
Michael Natterer cd0c301a3f app/widgets/Makefile.am new widget featuring a proof-of-concept palette
2006-11-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpcolorselectorpalette.[ch]: new widget featuring
	a proof-of-concept palette color selector. It always shows the
	current palette and doesn't bother to have any features yet. If I
	don't get around finishing this I will disable it for the 2.4
	release, but it's better kept in CVS than on my disk...
	Addresses bug #132146.

	* app/widgets/gimpcolordialog.c (gimp_color_dialog_new): attach
	the passed context to the dialog so the palette selector can find
	it (puke).

	* app/gui/gui.c (gui_restore_callback): register the new object
	with the GType system.
2006-11-03 17:28:52 +00:00
Michael Natterer 725a4e414f added value GIMP_UNDO_GROUP_LAYER_ADD.
2006-11-03  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch] (enum GimpUndoType): added value
	GIMP_UNDO_GROUP_LAYER_ADD.

	* app/file/file-open.[ch]: changed file_open_layer() to
	file_open_layers(), added parameter "gboolean merge_visible",
	return a GList of layers.

	* app/dialogs/file-open-dialog.c
	* app/display/gimpdisplayshell-dnd.c
	* app/widgets/gimplayertreeview.c: pass merge_visible = FALSE and
	add all returned layers to the image. Fixes bug #358082.
	(contains lots of duplicated code, will factor that out later).

	* tools/pdbgen/pdb/fileops.pdb (load_layer): pass merge_visible = TRUE
	(load_layers): new wrapper which returns all the image's layers.

	* app/pdb/fileops_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpfileops_pdb.[ch]: regenerated.

	* libgimp/gimp.def: changed accordingly.
2006-11-03 17:12:27 +00:00
Sven Neumann 568bbb9558 made non-abstract.
2006-11-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimageparasiteview.[ch]: made non-abstract.

	* app/dialogs/image-properties-dialog.c: show a "Comment" tab if
	the image contains a "gimp-comment" parasite.
2006-11-03 14:22:46 +00:00
Sven Neumann 4f4dea5645 app/widgets/Makefile.am app/widgets/widgets-types.h new abstract base
2006-11-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpimageparasiteview.[ch]: new abstract base class.

	* app/widgets/gimpimageprofileview.[ch]: derive from
	GimpImageParasiteView.
2006-11-03 13:52:17 +00:00
Michael Natterer 8e22e7c764 fix rendering for n_columns == 1 (bug #369368).
2006-11-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewrendererpalette.c
	(gimp_view_renderer_palette_render): fix rendering for
	n_columns == 1 (bug #369368).
2006-11-02 12:18:20 +00:00
Michael Natterer 93caf1f8b1 fix cell_width calculation again so we don't cut off cells. Don't write
2006-11-01  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewrendererpalette.c
	(gimp_view_renderer_palette_render): fix cell_width calculation
	again so we don't cut off cells. Don't write beyond the buffer's
	size, fixes random crashes.
2006-11-01 19:13:59 +00:00
Michael Natterer 5d48aa2f62 make sure we calculate the right number of columns and don't render more
2006-11-01  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewrendererpalette.c
	(gimp_view_renderer_palette_render): make sure we calculate the
	right number of columns and don't render more cells than columns
	in one row.
2006-11-01 03:15:51 +00:00