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

making tool re-arrangements cancellable in the preferences dialog

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

making tool re-arrangements cancellable in the preferences dialog Stephen Griffiths 24 Jul 11:07
  making tool re-arrangements cancellable in the preferences dialog Martin Nordholts 26 Jul 21:07
Stephen Griffiths
2009-07-24 11:07:20 UTC (over 15 years ago)

making tool re-arrangements cancellable in the preferences dialog

I am looking for some advice on how to make tool re-arrangements cancelable in the preferences dialog. (for http://bugzilla.gnome.org/show_bug.cgi?id=500930)

the current code that resets the preferences looks like this (in prefs-dialog):

if (gimp_dialog_run (GIMP_DIALOG (confirm)) == GTK_RESPONSE_OK) {
GimpConfig *config_copy;

config_copy = g_object_get_data (G_OBJECT (dialog), "config-copy");

gimp_config_reset (config_copy); }

Can anyone point me to an example of how to attach(?) a GimpContainer (or something similar) to gimpconfig in order to reset order/visibility?

regards, Stephen Griffiths.

Martin Nordholts
2009-07-26 21:07:10 UTC (over 15 years ago)

making tool re-arrangements cancellable in the preferences dialog

On 07/24/2009 11:07 AM, Stephen Griffiths wrote:

I am looking for some advice on how to make tool re-arrangements cancelable in the preferences dialog. (for http://bugzilla.gnome.org/show_bug.cgi?id=500930)

the current code that resets the preferences looks like this (in prefs-dialog):

if (gimp_dialog_run (GIMP_DIALOG (confirm)) == GTK_RESPONSE_OK) {
GimpConfig *config_copy;

config_copy = g_object_get_data (G_OBJECT (dialog), "config-copy");

gimp_config_reset (config_copy); }

Can anyone point me to an example of how to attach(?) a GimpContainer (or something similar) to gimpconfig in order to reset order/visibility?

Instead of doing that, can't you just store the toolbox state when the Preferences dialog is opened, and reset to that state if the dialog is cancelled? I don't think there is a need to use a GimpConfig here

BR, Martin