Commit Graph

3136 Commits

Author SHA1 Message Date
ffe2afb6fb Tag popup scrolling cleanup
- artificially limit the popup's height again so scrolling gets some testing.
- make sure the scroll buttons' sensitivity is always correct.
- remove obsolete utility function and other cleanups.
2009-07-12 19:26:17 +03:00
34f3c20d67 Remove more obsolete variables and indentation levels 2009-07-12 19:26:17 +03:00
e90a610e88 Factor out tag hit detection into a utility function 2009-07-12 19:26:17 +03:00
f441464656 Fix tiny miscalculation of the tag name rendering position 2009-07-12 19:26:16 +03:00
357e24aebf More tag popup cleanup
- reorder instance struct and add some spacing
- rename member "timeout_id" to "scroll_timeout_id"
- clean up constructor() even more (still the wrong place to
  do all these things)
2009-07-12 19:26:16 +03:00
3db3ad0703 Some more cleanup and a fix of a tiny earlier cleanup glitch 2009-07-12 19:26:16 +03:00
df57181899 Remove useless member "ignore_button_release" 2009-07-12 19:26:16 +03:00
7fdefa92e0 Clean up spacings, tag size calculation and tag rendering
The area sensitive to clicks now corresponds to the area that
is drawn selected, minus a border of one pixel.
2009-07-12 19:26:16 +03:00
66c54126f0 Use GTK_SHADOW_OUT for the tag popup's frame 2009-07-12 19:26:15 +03:00
59849bcb44 Use #defines instead of magic values for the tag spacing constants 2009-07-12 19:26:15 +03:00
3a1f3b4813 Remove "close_rectangles" member and the feature it implemented
Closing whatever popup by click on dead space within it is a no no,
otherwise one-pixel mis-clicks inside the widget make it go away,
which is totally unexpected.
2009-07-12 19:26:15 +03:00
094b7f5d64 Various code cleanups 2009-07-12 19:26:15 +03:00
e28727bdbd Widget construction / showing cleanup
- create the widgets in init() instead of constructor()
- don't show the popup in constructor()
- don't use gtk_widget_show_all()
2009-07-12 19:26:15 +03:00
487fc7402e Rename member "drawing_area" to "tag_area" 2009-07-12 19:26:14 +03:00
7582753661 Whitespace and minor code cleanup 2009-07-12 19:26:14 +03:00
7deab857b4 app: Update default save name according to spec
Update default save name according to the spec which is
http://gui.gimp.org/index.php/Save_%2B_export_specification in case
someone forgot.
2009-07-02 22:17:36 +02:00
f07d89de2a Bug 587543 – crash in GNU Image Manipulation Program: Pressing shift+-
Not all actions have procedures associated with them, for example
unused "plug-in-recent-[N]" actions, so check for NULL before we
invoke the plug-in action
2009-07-01 21:45:33 +02:00
1a2136408e Implement overwrite-mode in the text tool
* app/widgets/gimptextproxy.c: also swallow the "toggle-overwrite"
signal.

* app/tools/gimpdrawtool. [ch] (gimp_draw_tool_draw_text_cursor): add
"gboolean overwrite" which causes the cursor to be drawn as block.

* app/tools/gimptexttool.[ch]: implement overwriting, toggling it,
and changing the text cursor accordingly.
2009-06-25 13:22:25 +02:00
e78bda44b3 Implement insert_at_cursor() so bindings can insert text 2009-06-24 21:31:39 +02:00
b5079eb1b7 Move the GimpTextProxy widget from app/tools/ to app/widgets/ 2009-06-24 19:34:36 +02:00
1b69070556 Make key themes really work this time
* app/widgets/gimpwindow.c: treat GimpCanvas as a text widget and
  dispatch all key events to it before invoking menu shortcuts.

* app/display/gimpdisplayshell-callbacks.c: treat all events on the
  empty display as unhandled, not handled.

* app/tools/gimptexttool.c: use the right API for invoking the proxy
  text view's bindings. Handle some more cursor navigation request and
  swallow text deletion requests we don't handle instead of always
  doing what the delete key does.
2009-06-23 23:25:09 +02:00
6049768abf Bug 578630 - File Creation Permission Bug Only for Some File Types: Creating as 644 (rw-r--r--) when should be 664 (rw-rw-r--)
Use 0666 as permissions instead of 0644 and let the user's umask care
about restricting, so creating a file with open() behaves the same way
as with fopen().
2009-06-15 19:28:06 +02:00
d5fddb5ba9 app: gimpuimanager.c formatting 2009-05-28 19:42:18 +02:00
4c8b0f1f7e Bug 573614 – Tags dropdowns for brushes, patterns,
Display correct cursor when in widget area which opens popup list.
2009-05-26 21:39:43 +03:00
c9674b4603 Use the new GtkAction accessors instead of g_object_get()/set() 2009-05-24 22:29:18 +02:00
be21d3a1e3 Restrict the set of modifiers that prevent treeview item activation
Check for SHIFT, CONTROL and MOD1 explicitely so the code doesn't prevent
item activation for esoteric modifiers that are set by whatever X
component (like XKB).
2009-05-24 22:17:42 +02:00
7d76f25e26 Use gtk_activatable_set_related_action() instead of deprecated
gtk_action_connect_proxy()
2009-05-24 10:38:09 -07:00
2f9e2662c4 app: Don't activate container tree view items while modkey pressed
Only activate container tree view items when no modifier keys are
pressed so that for example the layer properties dialog is not shown
when quickly toggling a layer mask with Ctrl + Click.
2009-05-22 22:49:14 +02:00
f24ff4aca2 formatting 2009-05-17 11:01:28 +02:00
08beda17a2 app: Update out-of-date comment on default export type 2009-05-17 08:30:13 +02:00
c23370c3af app: Emit the GimpImage::exported signal when image is exported 2009-05-16 13:02:55 +02:00
d8f3cd1b26 app: Support default types for save and export 2009-05-16 13:02:54 +02:00
3122eb491f app: Implement save and export dialog default paths and filenames 2009-05-16 13:02:54 +02:00
d3353f721b app: Rename 'Save as Template' to 'Create Template'
Rename 'Save as Template' to 'Create Template' in the File menu.
2009-05-16 09:48:22 +02:00
46a1afebcd app: In some cases, fall back to export procs in absence of save proc
We want to fall back to export procs in some cases to maintain a level
of backwards compatibility.
2009-05-16 09:48:22 +02:00
0971d61fc4 app: Add an 'export' mode to the file save dialog 2009-05-16 09:48:12 +02:00
3025dac653 app: Introduce and use GimpFileChooserAction
Introduce and use GimpFileChooserAction in the core so that we can
differentiate Save from Export later.
2009-05-16 09:48:12 +02:00
c1a226bc74 app: Rearrange menu items for Save + export
Begin implementing the spec
http://gui.gimp.org/index.php/Save_+_export_specification
by rearranging the menu items according to it and adding necessary
stuff like help ids.
2009-05-16 01:12:40 +02:00
5db0b727d6 app: Don't set NULL URIs through GIMP_FILE_SAVE_LAST_URI_KEY 2009-05-16 00:44:29 +02:00
4e40ff7e65 app: Untabify gimpfiledialog.c 2009-05-08 20:15:47 +02:00
a0d9f6e57e app: Rename file_save() parameter save_a_copy to change_saved_state
Rename file_save() parameter save_a_copy to change_saved_state since
that is the semantics it has now.
2009-05-06 15:03:30 +02:00
8064bbf22e app: Pass Gimp instead of GimpContext to file_save() 2009-05-03 08:35:01 +02:00
c5787f51fc app: Introduce gimp_file_dialog_get_dirname_from_uri()
Introduce gimp_file_dialog_get_dirname_from_uri() to improve
readability.
2009-05-01 17:29:02 +02:00
a93346d0a0 app: Gather save dialog uri defaults in one place
Gather save dialog uri defaults in one place. Move the small bits of
it from file_save_dialog_new() to gimp_file_dialog_set_save_image()
where the rest is.
2009-05-01 12:23:46 +02:00
b0af6524b4 app/file: Rename gimpfile.h to gimp-file.h and fix include guards
The source filename convention would indicate that gimpfile.h
	holds code for the GimpFile object. Rename it to gimp-file.h
	to make clear that it doesn't.
2009-05-01 09:03:13 +02:00
e622dc3cad app: Introduce gimpfile.h
Introduce gimpfile.h which for now contains defines for GObject data
keys used when managing save and open dialog URI defaults. More are to
be added.
2009-04-30 20:00:18 +02:00
a51521fe1d app: Rename save-a-copy key
Rename "gimp-image-save-a-copy" key to "gimp-file-save-a-copy-uri"
since the key is more logical to have in the gimp file namespace and
the "-ur"i suffix is more consistent with other similar keys.
2009-04-30 19:58:55 +02:00
d9448730f9 Bug 555025 – Action GEGL box widgets weirdness
2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 555025 – Action GEGL box widgets weirdness

	Must not set GDK_HINT_MIN_SIZE if we don't actually set a minimum
	size, or the window will be shrinkable to zero and it won't
	expand automatically when its contents' requisition grows.

	* app/widgets/gimpdialogfactory.[ch]: add hackish API
	gimp_dialog_factory_set,get_has_min_size() because GTK+ itself
	has no API for querying a window's GdkWindowHints.

	(gimp_dialog_factory_set_user_pos): set GDK_HINT_MIN_SIZE only if
	the window was being marked as having a minimum size using above
	new API.

	* app/widgets/gimptoolbox.c (gimp_toolbox_set_geometry)
	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	call gimp_dialog_factory_set_has_min_size (window, TRUE).


svn path=/trunk/; revision=28224
2009-03-28 13:19:53 +00:00
2399d31d41 use GtkScaleButton's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpscalebutton.c: use GtkScaleButton's accessors.


svn path=/trunk/; revision=28212
2009-03-23 08:57:59 +00:00
45e89543d1 use GtkAdjustment's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.c: use GtkAdjustment's accessors.


svn path=/trunk/; revision=28210
2009-03-22 23:24:45 +00:00