summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 209d8ce)
raw | patch | inline | side by side (parent: 209d8ce)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 10 Sep 2007 05:10:07 +0000 (05:10 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 10 Sep 2007 05:10:07 +0000 (05:10 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index 1c94b73c3ff3dd72cfe70508e17edc56cf5afe0c..fd8c56c91d47785b1ee9a79d87c5f37c4caec74e 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
" <toolitem action='TweakModeLabel' />"
" <toolitem action='TweakModeAction' />"
" <separator />"
+ " <toolitem action='TweakFidelityAction' />"
+ " <separator />"
" <toolitem action='TweakChannelsLabel' />"
" <toolitem action='TweakDoH' />"
" <toolitem action='TweakDoS' />"
" <toolitem action='TweakDoL' />"
" <toolitem action='TweakDoO' />"
- " <separator />"
- " <toolitem action='TweakFidelityAction' />"
" </toolbar>"
" <toolbar name='ZoomToolbar'>"
GtkAction *dos = GTK_ACTION(g_object_get_data( tbl, "tweak_dos"));
GtkAction *dol = GTK_ACTION(g_object_get_data( tbl, "tweak_dol"));
GtkAction *doo = GTK_ACTION(g_object_get_data( tbl, "tweak_doo"));
+ GtkAction *fid = GTK_ACTION(g_object_get_data( tbl, "tweak_fidelity"));
GtkAction *dolabel = GTK_ACTION(g_object_get_data( tbl, "tweak_channels_label"));
if (mode == TWEAK_MODE_COLORPAINT || mode == TWEAK_MODE_COLORJITTER) {
if (doh) gtk_action_set_sensitive (doh, TRUE);
if (dol) gtk_action_set_sensitive (dol, TRUE);
if (doo) gtk_action_set_sensitive (doo, TRUE);
if (dolabel) gtk_action_set_sensitive (dolabel, TRUE);
+ if (fid) gtk_action_set_sensitive (fid, FALSE);
} else {
if (doh) gtk_action_set_sensitive (doh, FALSE);
if (dos) gtk_action_set_sensitive (dos, FALSE);
if (dol) gtk_action_set_sensitive (dol, FALSE);
if (doo) gtk_action_set_sensitive (doo, FALSE);
if (dolabel) gtk_action_set_sensitive (dolabel, FALSE);
+ if (fid) gtk_action_set_sensitive (fid, TRUE);
}
}
@@ -2941,6 +2944,9 @@ static void sp_tweak_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainAction
sp_tweak_fidelity_value_changed, 0.01, 0, 100 );
gtk_action_group_add_action( mainActions, GTK_ACTION(eact) );
gtk_action_set_sensitive( GTK_ACTION(eact), TRUE );
+ if (mode == TWEAK_MODE_COLORPAINT || mode == TWEAK_MODE_COLORJITTER)
+ gtk_action_set_sensitive (GTK_ACTION(eact), FALSE);
+ g_object_set_data( holder, "tweak_fidelity", eact );
}