Michael Natterer
3e336199b9
app: use gtk_box_new()
2011-09-30 11:29:11 +02:00
Alexia Death
cd2a1a92fc
app: Add configurable path for tool presets in preferences
2011-09-29 20:29:49 +03:00
Massimo Valentini
6095a9967f
app: Use of GimpViewableDialog with a NULL viewable is depecrated!
...
Do not pass a NULL viewable to gimp_viewable_dialog_new as it warns
and call gtk_window_set_resizable (, FALSE) so the expander works.
2011-09-05 18:27:34 +02:00
Michael Natterer
351423a2ef
app: put utility function in #ifdef HAVE_ICO_CODES in preferences-dialog.c
2011-09-02 00:14:21 +02:00
Michael Natterer
97c5a2817d
app: s/GTK_IS_VBOX/GTK_IS_BOX/ to simplify the gtk3-port branch
2011-07-27 20:21:58 +02:00
Alexander Hämmerle
421ca4114e
Bug 641187 - GIMP needs a left-handed cursor option
...
Add a cursor-handedness setting and flip the cursor when it's set to
left-handed.
2011-07-24 22:09:21 +02:00
Martin Nordholts
1aa91d0b0d
app: Remove fixme
...
The code works and the comment was never meant to be pushed.
2011-07-03 21:24:22 +02:00
Martin Nordholts
42c2c747d8
Bug 603848 - Single-window mode is not properly session managed yet
...
Make GimpImageWindow implement GimpDockContainer and
GimpSessionManaged so that GIMP can be started in single-window mode.
2011-06-04 12:22:20 +02:00
Martin Nordholts
b4ed281f9a
app: Call gimp_session_info_aux_set_list() generically
...
gimp_session_info_aux_set_list() is not a per-GimpDialogRestoreFunc
thing.
2011-05-31 23:15:38 +02:00
Martin Nordholts
6fc587c643
app: Add GimpSessionManaged
...
Add a GimpSessionManaged interface to generalize
gimp_session_info_aux_get_list() and gimp_session_info_aux_set_list().
2011-05-31 23:15:14 +02:00
Martin Nordholts
10aa3921a0
app: Rememeber if image windows are opened
...
Rememeber if image windows are opened because we want the
gimp_session_info_restore() code to run for the single-image window
once that code is in place.
2011-05-28 16:18:34 +02:00
Martin Nordholts
396d5fd5e8
app: Add a 'restore_func' to GimpDialogFactoryEntry
...
In gimp_session_info_restore() there is code to create a dialog from a
session info. GimpSessionInfo lives in the widgets module. Thus we
can't add restoration code that depends on a higher level module. In
particular, we can't add code to restore docks in an GimpImageWindow
since GimpImageWindow lives in the display module. And we need such
code to be able to restore a single-window mode session.
Since dialogs are defined in the dialogs module, it makes sense to
also have the code that restores a dialog in that module.
So, add a 'restore_func' member to GimpRestoreDialogFunc of type
GimpRestoreDialogFunc and move the code there.
2011-05-27 21:55:41 +02:00
Michael Natterer
9aae53802f
app: s/filepath/filename/ in order to avoid introducing new terminology
2011-05-20 19:06:57 +02:00
Martin Nordholts
091360fac4
app: For testing, support to override names of "sessionrc" and "dockrc"
...
Allow tests to specify specific sessionrc and dockrc files to use, so
they can share other files in the testing gimpdirc.
2011-05-18 21:11:07 +02:00
Martin Nordholts
7edf717bae
app: Add image_window boolean to GimpDialogFactoryEntry
...
Add image_window boolean to GimpDialogFactoryEntry and rename
FOREIGN_NOT_HIDEABLE() to IMAGE_WINDOW(). We need to treat image
windows a bit special when we restore a single-window mode session.
2011-05-13 21:25:39 +02:00
Michael Natterer
3184c0f339
app: use g_object_bind_property() to set sensitivity here too
2011-05-11 11:43:19 +02:00
Michael Natterer
c35ff719a7
app/libgimp*: remove stuff found by -Wunused-but-set-variable
2011-05-01 23:23:19 +02:00
Michael Natterer
92d7c7d8d9
app: change about dialog role from "about-dialog" to "gimp-about"
2011-03-30 20:20:47 +02:00
Michael Natterer
927ce61ce1
app: use a data delete dialog in the tool options' preset delete menu
2011-03-24 21:54:40 +01:00
Michael Natterer
920d1a42e9
app: move the GimpData delete confirm dialog to its own files
2011-03-24 21:46:40 +01:00
Michael Natterer
33dd20750f
Bug 645456 - Inconsistent window (role) naming scheme
...
"preferences" -> "gimp-preferences"
2011-03-21 21:49:08 +01:00
Michael Natterer
fcfb7cf160
Use the new g_[s]list_free_full() instead of foreach() and free()
2011-03-07 17:11:28 +01:00
Michael Natterer
fc7bd98d92
app: move all GimpStrokeOptions members to private
2011-03-05 21:00:28 +01:00
Michael Natterer
5b09e61c46
app: move all GimpTemplate members to private
2011-03-02 10:16:43 +01:00
Michael Natterer
f0f94ba6a1
app: move all GimpTemplateEditor members to private
2011-03-01 11:50:16 +01:00
Michael Natterer
02477f5563
Bug 625167 - Problem exporting floating selections from within layer groups
...
Add "gboolean merge_active_group" to gimp_image_merge_visible_layers()
and pass FALSE from the PDB wrapper so plug-in invoked layer merging
always acts on the toplevel container as it did in 2.6. Do the same
when opening an image as layer.
Also, added a "Merge within active group only" toggle to the merge
layers dialog and pass it down to the core, but default to TRUE here
so.
2011-02-14 09:45:59 +01:00
Martin Nordholts
6c6cf7a881
app: Move import and export URI updates to file_save()
...
We should handle import-URI and export-URI at a lower level so
e.g. the import URI is reset when gimp_dnd_xds_save_image() is
used.
This change also simplifies unit testing.
2011-02-02 22:31:27 +01:00
Martin Nordholts
1702822720
app: Fix copy-paste error in file-save-dialog.c
...
Fix what must have been a copy-paste error, we can not want to set
GIMP_FILE_SAVE_LAST_URI_KEY after we have exported.
2011-02-02 22:31:27 +01:00
Martin Nordholts
366cddc856
app: gimp_image_get/set_imported/exported/save_a_copy_uri()
...
Add more proper core API for GimpImage URI management.
2011-02-02 22:28:46 +01:00
Martin Nordholts
8d61a61c0e
app: Remove GIMP_FILE_EXPORT_TO_URI_KEY
...
Remove GIMP_FILE_EXPORT_TO_URI_KEY which is always identical to
GIMP_FILE_EXPORT_URI_KEY.
2011-02-02 22:28:46 +01:00
Martin Nordholts
ab5bd03a9c
Show maintainers after creators in About-dialog
...
It makes sense to show maintainers after creators in the About-dialog,
do that.
2011-01-27 18:52:00 +01:00
Martin Nordholts
285a42eef3
app: Calculate number of creators in about dialog
2011-01-27 18:52:00 +01:00
Michael Natterer
fcaf202b52
app: leftover code was setting the sensitivity of an unrelated label
2010-11-27 23:42:28 +01:00
Michael Natterer
8f991c5950
app: make the brush, pattern etc selecing boxes more compact
...
by integrating their label instead of requiring one externally. This
way we get rid of some more labels in the tool options. Also clean up
tool options further (add more spin scales, and some general
reordering and spacing cleanup).
2010-11-02 14:05:47 +01:00
Michael Natterer
79f0f5639b
Don't use gtk_container_add() for adding to GtkBoxes
...
because the packing options are different for GtkH/VBox and GtkBox
itself which is now instantiable. Instead, always use
gtk_box_pack_start() and specify expanding explicitely.
2010-10-30 14:57:56 +02:00
Michael Natterer
186b037f94
app: formatting
2010-10-29 10:33:57 +02:00
Michael Natterer
0829e5b028
app: simplify how the colormap editor sets FG/BG colors
...
Set the FG/BG on the widget's own context and remove the "selected"
signal and its callback in dialogs-constructors.c
2010-10-28 03:09:53 +02:00
Michael Natterer
f46122b862
app: add lots of accessors to GimpPalette
...
and use them all over the place instead of directly accessing the struct.
2010-10-27 14:36:44 +02:00
Martin Nordholts
cc7755f876
Port stuff to gimp_item_is_text_layer()
...
Port stuff to gimp_item_is_text_layer() instead of
gimp_drawable_is_text_layer(). Nevermind the previous commit, it
should never have been pushed...
2010-10-05 07:39:00 +02:00
Martin Nordholts
49a0be731e
app: s/gimp_drawable_is_text_layer/gimp_item_is_text_layer/g
2010-10-05 07:12:30 +02:00
Mukund Sivaraman
c83294f4ce
Minor coding style fix
2010-09-30 01:56:02 +05:30
Nils Philippsen
c9b03ef8ff
app: use last git commit year for copyright label
2010-09-28 15:07:45 +02:00
Michael Natterer
9942d5f692
app: draw the about dialog's animated string with cairo, not gdk_draw_layout()
2010-07-27 18:01:34 +02:00
Michael Natterer
8b31211639
Fix the bulid after GtkNotebookPage got deprecated in gtk-2-22
...
In all GtkNotebook::switch_page() callbacks, simply replace
GtkNotebookPage* by gpointer.
2010-07-16 15:24:25 +02:00
Michael Natterer
e7b16c8634
app: run dispose manually on the dialog factory before unrefing it
...
Because some of the dialogs the factory creates add a reference to
it, creating a cycle; so simply unrefing it doesn't do anything.
2010-06-24 18:38:17 +02:00
Martin Nordholts
f6781d15c4
Bug 565459 - newly opened images are put into the background
...
When we are going to open new image windows, unset the transient
window. We don't need it since we will use gdk_window_raise() to
keep the dialog on top. And if we don't do it, then the dialog
will pull the image window it was invoked from on top of all the
new opened image windows, and we don't want that to happen.
Patch heavily inspiried by hack from Massimo Valentini.
Also add a manual test case for the fix. (I don't think there is GTK+
API to automate it).
2010-06-23 20:17:44 +02:00
Martin Nordholts
2431740492
app: Explain gdk_window_raise() in file-open-dialog.c
2010-06-23 19:58:01 +02:00
Michael Natterer
72bcb72c44
app: rename gimp_template_create_image() to gimp_image_new_from_template()
...
and move it from gimptemplate.c to gimpimage-new.c
2010-06-05 22:42:00 +02:00
Michael Natterer
c75bab37d3
app: remove useless #includes
2010-05-30 18:08:55 +02:00
Michael Natterer
a2c70822d4
Use accessors from GTK+ 2.20 instead of using sealed members directly
2010-04-19 19:21:07 +02:00