Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
1e92b66b
Commit
1e92b66b
authored
Mar 26, 2003
by
Sven Neumann
Browse files
freeze object notifications around reset() and deserialize()
parent
05e39069
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/gui/tool-options-dialog.c
View file @
1e92b66b
...
...
@@ -270,8 +270,12 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
g_object_freeze_notify
(
G_OBJECT
(
tool_info
->
tool_options
));
gimp_tool_options_reset
(
tool_info
->
tool_options
);
gimp_tool_options_deserialize
(
tool_info
->
tool_options
,
"user"
,
NULL
);
g_object_thaw_notify
(
G_OBJECT
(
tool_info
->
tool_options
));
}
static
void
...
...
app/widgets/gimptooloptionseditor.c
View file @
1e92b66b
...
...
@@ -270,8 +270,12 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
g_object_freeze_notify
(
G_OBJECT
(
tool_info
->
tool_options
));
gimp_tool_options_reset
(
tool_info
->
tool_options
);
gimp_tool_options_deserialize
(
tool_info
->
tool_options
,
"user"
,
NULL
);
g_object_thaw_notify
(
G_OBJECT
(
tool_info
->
tool_options
));
}
static
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment