Commit caa83dcc authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

crop and resize: hide the custom ratio controls when not needed

parent fef7c377
......@@ -295,7 +295,7 @@ ratio_combobox_changed_cb (GtkComboBox *combobox,
else
ratio = (double) w / h;
gtk_widget_set_sensitive (GET_WIDGET ("custom_ratio_box"), idx == GTH_ASPECT_RATIO_CUSTOM);
gtk_widget_set_visible (GET_WIDGET ("custom_ratio_box"), idx == GTH_ASPECT_RATIO_CUSTOM);
gtk_widget_set_sensitive (GET_WIDGET ("invert_ratio_checkbutton"), use_ratio);
set_spin_value (self, ratio_w_spinbutton, w);
set_spin_value (self, ratio_h_spinbutton, h);
......
......@@ -394,7 +394,7 @@ ratio_combobox_changed_cb (GtkComboBox *combobox,
break;
}
gtk_widget_set_sensitive (GET_WIDGET ("custom_ratio_box"), idx == GTH_ASPECT_RATIO_CUSTOM);
gtk_widget_set_visible (GET_WIDGET ("custom_ratio_box"), idx == GTH_ASPECT_RATIO_CUSTOM);
gtk_widget_set_sensitive (GET_WIDGET ("invert_ratio_checkbutton"), use_ratio);
set_spin_value (self, ratio_w_spinbutton, w);
set_spin_value (self, ratio_h_spinbutton, h);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment