Revision 8cdaf01f py/scenic/gui.py

b/py/scenic/gui.py
294 294

  
295 295
        # video
296 296
        self.video_capture_size_widget = widgets_tree.get_object("video_capture_size")
297
        self.video_capture_custom_input_size_x_widget = widgets_tree.get_object("custom_input_size_x")
298
        self.video_capture_custom_input_size_y_widget = widgets_tree.get_object("custom_input_size_y")
297 299
        self.video_display_widget = widgets_tree.get_object("video_display")
298 300
        self.video_bitrate_widget = widgets_tree.get_object("video_bitrate")
299 301
        self.video_source_widget = widgets_tree.get_object("video_source")
......
1430 1432
         * user chooses a different video source.
1431 1433
        If the selected is not a V4L2, disables the input and norm widgets.
1432 1434
        """
1435

  
1436
        self.video_capture_custom_input_size_x_widget.set_value(200)
1433 1437
        value = _get_combobox_value(self.video_source_widget)
1434 1438
        self._widgets_changed_by_user = False
1435 1439
        # change choices and value:
......
1442 1446
            self.v4l2_standard_widget.set_active(-1)
1443 1447
            # SIZE:
1444 1448
            _set_combobox_choices(self.video_capture_size_widget, ALL_SUPPORTED_SIZE)
1449
            self.video_capture_custom_input_size_x_widget.set_sensitive(False)
1450
            self.video_capture_custom_input_size_y_widget.set_sensitive(False)
1445 1451
        else: # v4l2 or DC
1446 1452
            # INPUTS:
1447 1453
            current_camera_name = _get_combobox_value(self.video_source_widget)

Also available in: Unified diff