Author: abrander
Date: 2010-01-04 02:05:30 +0100 (Mon, 04 Jan 2010)
New Revision: 2966

Modified:
   branches/rawstudio-ng-color/src/rs-toolbox.c
Log:
Made transforms unsensitive when no photo is loaded.

Modified: branches/rawstudio-ng-color/src/rs-toolbox.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-toolbox.c        2010-01-03 17:22:40 UTC 
(rev 2965)
+++ branches/rawstudio-ng-color/src/rs-toolbox.c        2010-01-04 01:05:30 UTC 
(rev 2966)
@@ -79,6 +79,7 @@
        RSSettings *settings[3];
        GtkWidget *curve[3];
 
+       GtkWidget *transforms;
        gint selected_snapshot;
        RS_PHOTO *photo;
        GtkWidget *histogram;
@@ -188,7 +189,8 @@
 
        gtk_box_pack_start(self->toolbox, self->notebook, FALSE, FALSE, 0);
 
-       gtk_box_pack_start(self->toolbox, new_transform(self, TRUE), FALSE, 
FALSE, 0);
+       self->transforms = new_transform(self, TRUE);
+       gtk_box_pack_start(self->toolbox, self->transforms, FALSE, FALSE, 0);
 
        /* Initialize this to some dummy image to keep it simple */
        self->histogram_dataset = rs_image16_new(1,1,4,4);
@@ -857,6 +859,8 @@
        }
 
        rs_profile_selector_set_profiles_steal(toolbox->selector, dcp_profiles);
+
+       gtk_widget_set_sensitive(toolbox->transforms, !!(toolbox->photo));
 }
 
 GtkWidget *


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to