RSS/Atom feed Twitter
Site is read-only, email is disabled

Canvas Size Margin

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Canvas Size Margin Thorsten Wilms 13 May 11:45
  Canvas Size Margin Sven Neumann 13 May 17:25
   Canvas Size Margin moller 14 May 00:14
Thorsten Wilms
2007-05-13 11:45:46 UTC (almost 17 years ago)

Canvas Size Margin

Hi!

I often use Image: Canvas Size to add a margin. Recently mainly with mockups, where I want 12 px all around.

Doing the calculations in my head isn't too difficult, but does eat time and makes me context switch.

One solution would be allowing calculations in the entrie: 436+24 ... Typing +24 can be faster than erasing and typing 460. *2 is faster than switching to percent and 200. But that should be added on a GTK / per widget level, perhaps?

Another solution would be having fields for the margins or differences. Would complicate the dialog, but could offer nice possibilities if one needs different margins left/right/top/bottom.

Sven Neumann
2007-05-13 17:25:08 UTC (almost 17 years ago)

Canvas Size Margin

Hi,

On Sun, 2007-05-13 at 11:45 +0200, Thorsten Wilms wrote:

One solution would be allowing calculations in the entrie: 436+24 ... Typing +24 can be faster than erasing and typing 460. *2 is faster than switching to percent and 200.

That has been suggested every so often already and everyone agrees that it makes a lot of sense. Now someone just needs to write the code.

Sven

moller
2007-05-14 00:14:41 UTC (almost 17 years ago)

Canvas Size Margin

Sven Neumann wrote:

Hi,

On Sun, 2007-05-13 at 11:45 +0200, Thorsten Wilms wrote:

One solution would be allowing calculations in the entrie: 436+24 ... Typing +24 can be faster than erasing and typing 460. *2 is faster than switching to percent and 200.

That has been suggested every so often already and everyone agrees that it makes a lot of sense. Now someone just needs to write the code.

Hmmm, It looks like those values are set in a GtkSpinButton wrapped up in gimp_spin_button_new(). If that's the case, my guess is that the right solution is to either extend GtkSpinButton to include a little expression evaluator or, since there appears to be only the one instance of gtk_spin_button_new() in libgimpwidgets/gimpwidgets.c, create a new widget--maybe GtkEvaluatedSpinButton, or some such--that provides that capability.

Might be fun to tinker with...

Chris Moller

Sven