Commit Graph

25492 Commits

Author SHA1 Message Date
Michael Natterer 1e5da3939b Add basic infrastructure for trees of viewables
- add member "GimpViewable *parent" and accessors to get/set it
  (no property or signals yet)
- add virtual function ::get_children() which is supposed to return
  a GimpContainer of the viewable's children
2009-08-01 19:04:33 +02:00
Michael Natterer 656e30cd3a Looking at widget->requisition in size_allocate() is useless
Use the passed GtkAllocation for calculating things, not
widget->requisition.
2009-08-01 18:59:58 +02:00
Michael Natterer 2abca796bf Don't touch widget->requisition in size_request()
gimp_ruler_size_request(): modify the passed GtkRequisition, not
widget->requisition.
2009-08-01 18:57:58 +02:00
Michael Natterer f712a316df Bug 589674 – "Send by Email" does not update "Filename"
Use g_filename_display_basename() so it doesn't choke on non-utf8
filenames.
2009-08-01 18:39:18 +02:00
Stephen Griffiths 6a41c872f6 app: Make GimpToolEditor changes cancellable
Allow the user to cancel rearrangements of tool order and visibility
in Preferences. See enhancement request/bug #500930.
2009-08-01 16:27:34 +02:00
Christopher Howard 9cddfeba73 Bug 589674 – "Send by Email" does not update "Filename"
Remove a conditional so that, in interactive mode, the Send by E-mail
feature always uses the name of the file as the default file field
value, instead of using the previously entered value of the field.
2009-08-01 11:36:14 +02:00
Michael Natterer 9c4a2ab4ea Move layer mask related functions together 2009-07-30 18:59:12 +02:00
Denis Arnaud 13082657be Updated breton translation 2009-07-30 04:54:25 +02:00
Alan Monfort 21dd836bf6 Updated breton translation 2009-07-29 18:13:51 +02:00
Denis Arnaud 55315a57f9 Updated breton translation 2009-07-29 12:15:04 +02:00
Denis Arnaud b68991dc47 Updated breton translation 2009-07-29 06:07:10 +02:00
Denis Arnaud 4ae4b45d5f Updated breton translation 2009-07-29 06:07:10 +02:00
Denis Arnaud bd50c5acba Updated breton translation 2009-07-29 06:07:10 +02:00
Denis Arnaud 4d2fa574ce Updated breton translation 2009-07-29 06:07:10 +02:00
Denis Arnaud 3dd535823a Updated breton translation 2009-07-29 06:07:09 +02:00
Michael Natterer 96126034c9 Get rid of antique code duplication
Factor out large portions of identical code into new utility functions
gimp_container_view_connect_context() and
gimp_container_view_disconnect_context().
2009-07-28 21:02:32 +02:00
Michael Natterer 3ae83c5ced Fix setting a context for the unlikely case that the container is frozen 2009-07-28 19:17:42 +02:00
Michael Natterer eff6d4f930 Cosmetic changes 2009-07-28 19:15:36 +02:00
Michael Natterer b54a0fdf88 Replace the name_changed_handler_id GQuark by a hash of quarks
Keep around the handler IDs for the "name-changed" signals of the
container's children in a hash table that maps containers to handler
IDs and move adding/removing of the handler to
add_container()/remove_container(). This way the name-changed code is
prepared for handling multiple containers.
2009-07-28 19:08:07 +02:00
Michael Natterer 13ec6cca81 Add utility functions for adding/removing a container to/from the view
In preparation of having a tree of containers, added

gimp_container_view_add_container(),
gimp_container_view_remove_container() and
gimp_container_view_remove_foreach()

which do all the job of inserting/removing items and
connecting/disconnecting the "add", "remove" and "reorder" signals.

Also refactored things so when the toplevel container freezes/thaws,
it simply gets removed from the view instead of ignoring its signals.

gimp_container_view_real_set_container()
gimp_container_view_freeze()
gimp_container_view_thaw(): use the new add_container() and
remove_container() APIs and fix the code for the unlikely case
that a frozen container gets added/removed.
2009-07-28 16:47:28 +02:00
Alexandre Prokoudine 062e90adcd Updated Russian translation 2009-07-28 18:13:00 +04:00
Alexandre Prokoudine ae3a0a5b47 Updated Russian translation 2009-07-28 18:12:54 +04:00
Alexandre Prokoudine a5bb58c273 Updated Russian translation 2009-07-28 17:29:34 +04:00
Michael Natterer 1b759561ce Keep the item hash table around permanently
GHashTable has g_hash_table_remove_all() since GLib 2.12, so there is
no need any longer to clear the hash table by destroyung it. Instead,
keep the hash around during the view's entire lifetime and remove all
re-creation code and all checks for its existence.
2009-07-28 15:04:43 +02:00
Denis Arnaud 3c844e867a Updated breton translation 2009-07-28 13:24:08 +02:00
Denis Arnaud e7d541a6d0 Added breton translation for tags 2009-07-28 13:23:41 +02:00
Denis Arnaud 05446a1416 Added br in LINGUAS 2009-07-28 13:23:04 +02:00
Alan Monfort aed2d23e90 Added breton translation 2009-07-28 06:20:27 +02:00
Alan Monfort 6fb5d6051e Added breton translation 2009-07-28 06:18:54 +02:00
Alan Monfort ff849661e8 Added breton translation 2009-07-28 06:18:23 +02:00
Denis Arnaud 3559aeb095 Added breton 2009-07-28 06:16:38 +02:00
Denis Arnaud 0f95e1d57f Added breton 2009-07-28 05:13:34 +02:00
Denis Arnaud fc3e62a469 Added breton 2009-07-28 05:13:21 +02:00
Denis Arnaud 621c991fa6 Added breton 2009-07-28 05:13:07 +02:00
Denis Arnaud 77c54ddf65 Added breton 2009-07-28 05:12:40 +02:00
Alan Monfort 0cbd4a8145 Added breton translation 2009-07-28 05:10:36 +02:00
Alan Monfort 5b770ffb89 Added breton translation 2009-07-28 05:10:02 +02:00
Alan Monfort 82c132bd63 Added breton translation 2009-07-28 05:09:46 +02:00
Alan Monfort b58ffe572c Added breton translation 2009-07-28 05:09:34 +02:00
Alan Monfort 13954c923d Added breton translation 2009-07-28 05:09:02 +02:00
Michael Natterer e4581dbd54 Bug 589783 – Finnish translation typo 2009-07-26 21:05:53 +02:00
Daniel Nylander dee2bc4f38 Updated Swedish translation 2009-07-26 16:44:41 +02:00
Daniel Nylander dd5f64ef6a Updated Swedish translation 2009-07-26 16:37:37 +02:00
Daniel Nylander 9888414c1f Updated Swedish translation 2009-07-26 16:30:57 +02:00
Daniel Nylander 27b9bacfda Updated Swedish translation 2009-07-26 16:29:29 +02:00
Michael Natterer b78b6f6274 Set the tree view's "show-expanders" to FALSE
Don't waste the expander space in all GimpContainerTreeViews. We can
later set it to TRUE in individual subclasses which actually display a
tree and not only a list.
2009-07-26 14:19:58 +02:00
Michael Natterer bc51e8f98c Use the right area for click detection on treeview cells
Use gtk_tree_view_get_cell_area() instead of
gtk_tree_view_get_background_area() because the latter includes things
like expanders, indentation and padding and messes up the x coordinate
of our naive click detection.
2009-07-26 14:13:30 +02:00
Michael Natterer 07ecd55b1c Rename private->hash_table to private->item_hash 2009-07-25 18:21:23 +02:00
Michael Natterer 344f52bbc2 Use GtkTreeStore instead of GtkListStore in GimpContainerTreeView 2009-07-25 17:38:03 +02:00
Michael Natterer 472bf62b67 Some straightforward tool editor cleanups
- split up button callbacks into one callback per button
- add stephen to copyright
- some minor whitespace fixups
2009-07-23 10:28:04 +02:00